You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by an...@magnasteyr.com on 2005/12/06 09:29:11 UTC

AW: OnLoad in Myfaces -->something like in Oracle ADF? -->Problems with JSFCOMP

Hi!

This listener looks great, but I have problems with implementing it.
Here are the steps I took:

.)Put the jsfExt.jar into my WEB-INF/lib directory.
.)Add a onload-config.xml into my WEB-INF directory
It looks like this:
 <?xml version="1.0" encoding="UTF-8"?>
<onload-config xslns="urn:onload-config"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="urn:onload-config onload-config.xsd">
	
	<navigation-rule>
		<view-id>/login.jsp</view-id>
		<action>#{linker.startdatabase}</action>
	</navigation-rule>
	
</onload-config>

.)Add a onload-config.xsd into my WEB-INF diretory:
(Just copied it out of the zip File)

.)Add the following into my Web.xml:
<context-param>
        <param-name>onload-rules</param-name>
        <param-value>/WEB-INF/onload-config.xml</param-value>
 </context-param>


Nevertheless the XML (both the onload-config.xml and the onload-config.xsd) doesn't seem to be well-formed:
On the onload-config.xml I get the following error:
cvc-elt1: Cannot find the declaration of element onload-config

on the onload-config.xsd I get the following error at line: <xs:element name="onload-config" type="Config"/>
src-resolve 4.1: Error resolving component 'Config'. It was detected that Config has no namespace, but components with no target namespace are not referencable from schema document....


Can anybody help me?

Thx
Regards,
Andy

-----Ursprüngliche Nachricht-----
Von: Andrew Robinson [mailto:andrew.rw.robinson@gmail.com]
Gesendet: Montag, 5. Dezember 2005 18:22
An: MyFaces Discussion
Betreff: Re: OnLoad in Myfaces -->something like in Oracle ADF?


I have an OnLoad phase listener implemented. It is part of
http://sourceforge.net/projects/jsf-comp

Check out the "jsfExt" release. It isn't a component, but may provide
the functionality that you are looking for.

-Andrew

On 12/5/05, andreas.mitter@magnasteyr.com <an...@magnasteyr.com> wrote:
>
>
> Hi all!
>
> Can I find a similar component like the Oracle ADF body, especially the
> "onload", component in Myfaces?
> Or can I do a workaround to load a method from the backing bean at Onload of
> the jsf page?
>
> Regards
> Andy
> ______________________________________________________________________
> This email and any files transmitted with it are confidential and intended
> solely for the use of the individual or entity to whom they are addressed.
> If you have received this email in error please notify your system manager.
> This footnote also confirms that this email message has been swept for the
> presence of computer viruses.
> ______________________________________________________________________
>


______________________________________________________________________

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
your system manager.
 
This footnote also confirms that this email message has been swept
for the presence of computer viruses. 
______________________________________________________________________

Re: OnLoad in Myfaces -->something like in Oracle ADF? -->Problems with JSFCOMP

Posted by Andrew Robinson <an...@gmail.com>.
I have uploaded release 0.8.1 as a bug fix patch for this.

There were two problems, one was that I used a prefix on the namespace
in the xsd, which may not be incorrect, but was bad practice, that is
now removed. Also, the example XML had a typo of "xslns" instead of
"xmlns".

I am able to run it in a test environment on Tomcat 5.5. Let me know
if this is still an issue with the new release.

-Andrew

On 12/6/05, andreas.mitter@magnasteyr.com <an...@magnasteyr.com> wrote:
> Hi!
>
> This listener looks great, but I have problems with implementing it.
> Here are the steps I took:
>
> .)Put the jsfExt.jar into my WEB-INF/lib directory.
> .)Add a onload-config.xml into my WEB-INF directory
> It looks like this:
>  <?xml version="1.0" encoding="UTF-8"?>
> <onload-config xslns="urn:onload-config"
>         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>         xsi:schemaLocation="urn:onload-config onload-config.xsd">
>
>         <navigation-rule>
>                 <view-id>/login.jsp</view-id>
>                 <action>#{linker.startdatabase}</action>
>         </navigation-rule>
>
> </onload-config>
>
> .)Add a onload-config.xsd into my WEB-INF diretory:
> (Just copied it out of the zip File)
>
> .)Add the following into my Web.xml:
> <context-param>
>         <param-name>onload-rules</param-name>
>         <param-value>/WEB-INF/onload-config.xml</param-value>
>  </context-param>
>
>
> Nevertheless the XML (both the onload-config.xml and the onload-config.xsd) doesn't seem to be well-formed:
> On the onload-config.xml I get the following error:
> cvc-elt1: Cannot find the declaration of element onload-config
>
> on the onload-config.xsd I get the following error at line: <xs:element name="onload-config" type="Config"/>
> src-resolve 4.1: Error resolving component 'Config'. It was detected that Config has no namespace, but components with no target namespace are not referencable from schema document....
>
>
> Can anybody help me?
>
> Thx
> Regards,
> Andy
>
> -----Ursprüngliche Nachricht-----
> Von: Andrew Robinson [mailto:andrew.rw.robinson@gmail.com]
> Gesendet: Montag, 5. Dezember 2005 18:22
> An: MyFaces Discussion
> Betreff: Re: OnLoad in Myfaces -->something like in Oracle ADF?
>
>
> I have an OnLoad phase listener implemented. It is part of
> http://sourceforge.net/projects/jsf-comp
>
> Check out the "jsfExt" release. It isn't a component, but may provide
> the functionality that you are looking for.
>
> -Andrew
>
> On 12/5/05, andreas.mitter@magnasteyr.com <an...@magnasteyr.com> wrote:
> >
> >
> > Hi all!
> >
> > Can I find a similar component like the Oracle ADF body, especially the
> > "onload", component in Myfaces?
> > Or can I do a workaround to load a method from the backing bean at Onload of
> > the jsf page?
> >
> > Regards
> > Andy
> > ______________________________________________________________________
> > This email and any files transmitted with it are confidential and intended
> > solely for the use of the individual or entity to whom they are addressed.
> > If you have received this email in error please notify your system manager.
> > This footnote also confirms that this email message has been swept for the
> > presence of computer viruses.
> > ______________________________________________________________________
> >
>
>
> ______________________________________________________________________
>
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please notify
> your system manager.
>
> This footnote also confirms that this email message has been swept
> for the presence of computer viruses.
> ______________________________________________________________________
>