JS Portal Support | 1 Jun 2007 05:58

RE: Clay jsfid="form" not working

Gary,

Your comments made give another closer look at the components on my pages
that did not work. It turned out that a mall formatted object and embed tag
for a flash file caused the problem. I had the following ugly tag that
worked before I used clay. (There must be better ways but when I build it I
just stuck with what worked):

<param name="movie" value="<h:outputText value="
#{webappLabels['imagePath.public.home.flash']}"/>" />

Now, however, I have an equally ugly solution that works:

<param name="movie" value="<span jsfid="outputText" value="
#{webappLabels['imagePath.public.home.flash']}" allowbody="false"></span>"
/>

Is there a more elegant way to use EL in clay outside the known components,
or would I need to build my own component? 

Thanks,
Joost			
-----Original Message-----
From: Gary VanMatre [mailto:gvanmatre <at> comcast.net] 
Sent: Friday, June 01, 2007 2:15 AM
To: user <at> shale.apache.org
Subject: RE: Clay jsfid="form" not working

>From: "JS Portal Support" <support <at> jsportal.com> 
>
(Continue reading)

Gary VanMatre | 1 Jun 2007 16:31
Picon

RE: Clay jsfid="form" not working

>From: "JS Portal Support" <support <at> jsportal.com> 
>
> Gary, 
> 
> Your comments made give another closer look at the components on my pages 
> that did not work. It turned out that a mall formatted object and embed tag 
> for a flash file caused the problem. I had the following ugly tag that 
> worked before I used clay. (There must be better ways but when I build it I 
> just stuck with what worked): 
> 
>  <param name="movie" value="<h:outputText value="
>   #{webappLabels['imagePath.public.home.flash']}"/>" />>
> 
> Now, however, I have an equally ugly solution that works: 
> 
><param name="movie" value="<span jsfid="outputText" value="
>#{webappLabels['imagePath.public.home.flash']}" allowbody="false"></span>"
>/>
> 
> Is there a more elegant way to use EL in clay outside the known components, 
> or would I need to build my own component? 
> 

Have you tried just dropping in the EL?  This will probably work 
because clay loads markup that it can not map to a JSF component 
in an outputText component. This is like an implicit f:verbatim.  It 
scans the "value" looking for EL.  If the value, containing markup 
contains EL, it creates a value binding to resolve the expression.

Consider:
(Continue reading)

mario.buonopane | 4 Jun 2007 09:54
Picon
Favicon

RE: No onException called

Rahul, some times ago Craig told me that the onException is the correct
way to catch and manage this exception:
http://www.mail-archive.com/user <at> shale.apache.org/msg01111.html

Mario 

-----Original Message-----
From: Rahul Akolkar [mailto:rahul.akolkar <at> gmail.com] 
Sent: 30 maggio 2007 18.20
To: user <at> shale.apache.org
Subject: Re: No onException called

On 5/30/07, mario.buonopane <at> accenture.com
<mario.buonopane <at> accenture.com> wrote:
> Hi, I have configure a my dialogContextListener but If I receive the
> onEntry method call back (for example) but I don't receive any
> onException in case I call a transition not setted in dialog config
> file. In the log I found:
>
<snip/>

The DialogContextListeners are notified on certain type of application
errors such as:

 * Exception while executing the method binding expression associated
with an action state
 * Exception while trying to instantiate dialog data

but are not notified on exceptions that have to do with either the
completeness of the dialog's "model" (such as the case here, an
(Continue reading)

mario.buonopane | 4 Jun 2007 14:15
Picon
Favicon

Question about ShaleViewRoot

In faces-config.xml distributed with shale-view.jar there is the
definition of ShaleViewRoot component:

      <component-type>javax.faces.ViewRoot</component-type>

 
<component-class>org.apache.shale.view.faces.ShaleViewRoot</component-cl
ass>

But I have a question about the jsf mechanisms:

If in my WEB-INF/lib I have two jars with faces-config.xml distributed
in META-INF directory, each of one define javax.faces.ViewRoot component
type, witch is the component setted? Depends on the classloader order
used to load the jars? 

Mario Buonopane

This message is for the designated recipient only and may contain privileged, proprietary, or otherwise
private information.  If you have received it in error, please notify the sender immediately and delete
the original.  Any other use of the email by you is prohibited.
Gary VanMatre | 4 Jun 2007 18:10
Picon

Re: Question about ShaleViewRoot

>From: <mario.buonopane <at> accenture.com> 
>
> In faces-config.xml distributed with shale-view.jar there is the 
> definition of ShaleViewRoot component: 
> 
>     <component-type>javax.faces.ViewRoot</component-type>
>           <component-class>org.apache.shale.view.faces.ShaleViewRoot</component-class>
> 
> 
> But I have a question about the jsf mechanisms: 
> 
> 
> If in my WEB-INF/lib I have two jars with faces-config.xml distributed 
> in META-INF directory, each of one define javax.faces.ViewRoot component 
> type, witch is the component setted? Depends on the classloader order 
> used to load the jars? 
> 
> 
>

Answered this question on the myfaces list:

http://www.nabble.com/Qeestion-about-jsf-tf3864849.html

 
> 
> 
> 
> 
> Mario Buonopane 
(Continue reading)

Rahul Akolkar | 4 Jun 2007 22:05
Picon

Re: No onException called

On 6/4/07, mario.buonopane <at> accenture.com <mario.buonopane <at> accenture.com> wrote:
> Rahul, some times ago Craig told me that the onException is the correct
> way to catch and manage this exception:
> http://www.mail-archive.com/user <at> shale.apache.org/msg01111.html
>
<snip/>

The code will throw an IllegalStateException (as you've posted in the
top post in this thread), but won't result in an onException callback
in this scenario (I'm sort of interested in knowing what the scenarios
are -- other than developer error).

Obviously, I can't speak for Craig or anyone else, but I think his
response in this thread overrides that one by virtue of being more
recent.

-Rahul

> Mario
>
> -----Original Message-----
> From: Rahul Akolkar [mailto:rahul.akolkar <at> gmail.com]
> Sent: 30 maggio 2007 18.20
> To: user <at> shale.apache.org
> Subject: Re: No onException called
>
> On 5/30/07, mario.buonopane <at> accenture.com
> <mario.buonopane <at> accenture.com> wrote:
> > Hi, I have configure a my dialogContextListener but If I receive the
> > onEntry method call back (for example) but I don't receive any
(Continue reading)

mario.buonopane | 5 Jun 2007 09:06
Picon
Favicon

RE: No onException called

Rahul, every time I ask for something someone respond me ask me for a
use case, but the point is:
Why don't throw a framework-specific exception like
"TransitionNotFoundException"?
Is so horrible? In my point of view, if a framework throw specific
exception would be a good idea... Craig told me the same think, so if
you agree I can open an RFC.

However thanks for Shale and the time you spend for it!

Mario 

-----Original Message-----
From: Rahul Akolkar [mailto:rahul.akolkar <at> gmail.com] 
Sent: 4 giugno 2007 22.05
To: user <at> shale.apache.org
Subject: Re: No onException called

On 6/4/07, mario.buonopane <at> accenture.com <mario.buonopane <at> accenture.com>
wrote:
> Rahul, some times ago Craig told me that the onException is the
correct
> way to catch and manage this exception:
> http://www.mail-archive.com/user <at> shale.apache.org/msg01111.html
>
<snip/>

The code will throw an IllegalStateException (as you've posted in the
top post in this thread), but won't result in an onException callback
in this scenario (I'm sort of interested in knowing what the scenarios
(Continue reading)

mario.buonopane | 5 Jun 2007 11:19
Picon
Favicon

RE: SHALE-409 fix

Any news about the fix? 

-----Original Message-----
From: Gary VanMatre [mailto:gvanmatre <at> comcast.net] 
Sent: 23 maggio 2007 22.44
To: user <at> shale.apache.org
Subject: Re: SHALE-409 fix

>From: "Craig McClanahan" <craigmcc <at> apache.org> 
>
> On 5/23/07, Gary VanMatre wrote: 
> > >From: "Craig McClanahan" 
> > > 
> > > On 5/23/07, Gary VanMatre wrote: 
> > > > 
> > > > >From: Torsten Krah tkrah <at> fachschaft.imn.htwk-leipzig.de 
> > > > > 
> > > > >The question would be - as the second run is really useless -
how to 
> > > > >identify annotated tiger beans. 
> > > > >If they can be identified (dont know if this is possible and
how to do 
> > > > >it yet), than the code in run two can be fixed to do what the
comment 
> > > > >does want to do, remove them, instead of removing the rest
completely. 
> > > > > 
> > > > 
> > > > I'm thinking that we could just remove that bit of logic because
the 
(Continue reading)

mario.buonopane | 5 Jun 2007 14:43
Picon
Favicon

Problem with subdialogs

I have some problem with subdialogs using shale1.1.0-snapshot (22/05). 

The first problem is:

I have a dialog B with following this configuration:

  <dialog name="Test dialogo B" start="Pagina A">

    <view name="Pagina A" viewId="/test_dialogo_b/pagina_a.jsp">

      <transition outcome="avanti" target="Pagina B"/>

      <transition outcome="indietro" target="Exit"/>

    </view>

    <view name="Pagina B" viewId="/test_dialogo_b/pagina_b.jsp">

      <transition outcome="avanti" target="Pagina C"/>

      <transition outcome="indietro" target="Pagina A"/>

    </view>

    <view name="Pagina C" viewId="/test_dialogo_b/pagina_c.jsp">

      <transition outcome="avanti" target="Exit"/>

      <transition outcome="indietro" target="Pagina B"/>

(Continue reading)

Pawel | 5 Jun 2007 16:35
Picon

Cannot set my JSF-Components


Hi  <at>  all,

at first sorry for my poor English. I'm using shale for few month and at
least i have a problem with a simple textinput. I type any string in my
jsf-component, but my method gets only null values :-(. 

Here are my files:

Java class, which should get the values from the jsf-components. The method
setup exits with the string "failed", cause toid == null.
http://www.nabble.com/file/p10970838/EditTransmitAction.java
EditTransmitAction.java 

JSF-File, profile$transmit is mapped to EditTransmitAction class. The
transmit button was clicked
http://www.nabble.com/file/p10970838/transaction.jsp transaction.jsp 

Only the last dialog "Transfer" is interesting for this process. 
http://www.nabble.com/file/p10970838/dialog-config.xml dialog-config.xml 

And the full faces-configxml:
http://www.nabble.com/file/p10970838/faces-config.xml faces-config.xml 

If i start the setup method of the EditTransmitAction class, i get this log:

init0
init1
setup
null, null, null <--- This are my values
(Continue reading)


Gmane