Well I am trying to use the property. Here's the type of code I'm using:
<!--- jwc -->
<parameter name="myObject" default-binding="ognl" required="true"/>
<!--- class -->
public abstract MyObject getMyObject();
public void pageBeginRender(PageEvent event){
if(getMyObject() == null){
addError("MyObject is null"); //ALWAYS goes here
return;
}
}
<!-- html -->
<span jwcid="@Insert" value="myObject.title">This works!</span>
The reason I'm trying to access it is because some of the values need
to be formatted and stuck goether in the display. I could do all of
this through ognl expressions, but its a little bit easier to
understand conditionals and such right in the code (at least for me).
-Nick
On 6/15/05, Howard Lewis Ship <[EMAIL PROTECTED]> wrote:
> That should work fine. What is the OGNL expression? Why are you
> accessing the binding directly, instead of using the property?
>
> On 6/15/05, Nick Stuart <[EMAIL PROTECTED]> wrote:
> > Hi all, I seem to be having a prolem getting a value from a parameter
> > from inside a PageBeginRender listener. The parameters is set, as I
> > can use the same value fine inside the html template.
> > object.whaterver) works just fine. But my getObject() is always
> > returning null. I have cache set to true, and default-binding set to
> > ognl, anything I'm doing wrong here?
> >
> > Thanks for the hepl!
> > -Nick
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Howard M. Lewis Ship
> Independent J2EE / Open-Source Java Consultant
> Creator, Jakarta Tapestry
> Creator, Jakarta HiveMind
>
> Professional Tapestry training, mentoring, support
> and project work. http://howardlewisship.com
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]