cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jorg Heymans ...@domek.be>
Subject Re: Authentication problem
Date Wed, 20 Jul 2005 09:44:16 GMT


Angelo Immediata wrote:
> Hi.
> First of all very thanks for your reply.
> I'll give a look to the java class later in this day.
> I have tried by using   
> var codiceFiscale = sessionManager.getContextFragment("authentication","/authentication/USERINFORMATION/CODICE_FISCALE/text()");
> and i have:
> 	codiceFiscale: 
> 
> 	[#document-fragment: null]
> 
> Then i have tried this one:
> var codiceFiscale = sessionManager.getContextFragment("authentication","/authentication/USERINFORMATION/CODICE_FISCALE/text()").getFirstChild().getNodeValue();
> and i have an error (TypeError cannot convert null to an object)
> While if i use
> var codiceFiscale = sessionManager.getContextFragment("authentication","/authentication/USERINFORMATION/CODICE_FISCALE/text()").getFirstChild();
> i have null.

I just verified your xpath with oxygen xml, it is correct and should
retrieve the full node value. Even the text() directive at the end
should be fine. Sorry for the red herring :-)

Step through the getXML method to see where exactly it thinks it is
retrieving that value.

HTH
Jorg


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message