You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Marcus Bond <ma...@hotmail.com> on 2006/11/24 15:39:27 UTC

Example jars

Hi,
Have been looking around the myFaces site trying to find some examples to 
help out with using tomahawk features and saw a link to example apps for 
tomahawk. On clicking it I ended up on the page where all the librarys are 
but the only one with an example was Tobago. Can someone tell me where the 
tomahawk examples are please?

Also, when trying to use the tomahawk features, I ended up with problems 
once the filter mapping was placed in web.xml as there was a class not found 
exeption which has since been resolved (took a while though to work out the 
problem) by including the commons-fileupload.jar file. There is no mention 
anywhere on the tomahawk page that this jar is required or clue as to where 
it can be found. Would it be possible to include this information on the 
tomahawk pages if only to save others from despair?

Thanks,
Marcus.

P.S. Love the work of this project!

_________________________________________________________________
Windows Live™ Messenger has arrived. Click here to download it for free! 
http://imagine-msn.com/messenger/launch80/?locale=en-gb


Re: Example jars

Posted by Grant Smith <wo...@gmail.com>.
Hi Marcus,

The list of dependencies [1], does in fact show the commons-fileupload
dependency.

Thanks,
Grant

[1] http://myfaces.apache.org/tomahawk/dependencies.html

On 11/28/06, Marcus Bond <ma...@hotmail.com> wrote:
>
> Great, thanks!
>
>
> >From: "Matthias Wessendorf" <ma...@apache.org>
> >Reply-To: "MyFaces Discussion" <us...@myfaces.apache.org>
> >To: "MyFaces Discussion" <us...@myfaces.apache.org>
> >Subject: Re: Example jars
> >Date: Fri, 24 Nov 2006 17:52:05 +0100
> >
> >not up to date, but here:
> >
> >
> http://people.apache.org/repo/m2-snapshot-repository/org/apache/myfaces/tomahawk/myfaces-example-simple/1.1.4-SNAPSHOT/
> >
> >On 11/24/06, Marcus Bond <ma...@hotmail.com> wrote:
> >>Thanks, provides a fair bit of info.
> >>Are there are any projects for download so the java source in backing
> >>beans
> >>can be looked at?
> >>
> >>
> >> >From: "Sudhakar Mekathotti" <me...@gmail.com>
> >> >Reply-To: "MyFaces Discussion" <us...@myfaces.apache.org>
> >> >To: "MyFaces Discussion" <us...@myfaces.apache.org>
> >> >Subject: Re: Example jars
> >> >Date: Fri, 24 Nov 2006 14:47:25 +0000
> >> >
> >> >Marcus,
> >> >
> >> >You can see the examples at http://www.irian.at/training.jsf
> >> >
> >> >
> >> >On 11/24/06, Marcus Bond <ma...@hotmail.com> wrote:
> >> >>
> >> >>Hi,
> >> >>Have been looking around the myFaces site trying to find some
> examples
> >>to
> >> >>help out with using tomahawk features and saw a link to example apps
> >>for
> >> >>tomahawk. On clicking it I ended up on the page where all the
> librarys
> >>are
> >> >>but the only one with an example was Tobago. Can someone tell me
> where
> >>the
> >> >>tomahawk examples are please?
> >> >>
> >> >>Also, when trying to use the tomahawk features, I ended up with
> >>problems
> >> >>once the filter mapping was placed in web.xml as there was a class
> not
> >> >>found
> >> >>exeption which has since been resolved (took a while though to work
> out
> >> >>the
> >> >>problem) by including the commons-fileupload.jar file. There is no
> >>mention
> >> >>anywhere on the tomahawk page that this jar is required or clue as to
> >> >>where
> >> >>it can be found. Would it be possible to include this information on
> >>the
> >> >>tomahawk pages if only to save others from despair?
> >> >>
> >> >>Thanks,
> >> >>Marcus.
> >> >>
> >> >>P.S. Love the work of this project!
> >> >>
> >> >>_________________________________________________________________
> >> >>Windows Live™ Messenger has arrived. Click here to download it for
> >>free!
> >> >>http://imagine-msn.com/messenger/launch80/?locale=en-gb
> >> >>
> >> >>
> >>
> >>_________________________________________________________________
> >>Windows Live™ Messenger has arrived. Click here to download it for free!
> >>http://imagine-msn.com/messenger/launch80/?locale=en-gb
> >>
> >>
> >
> >
> >--
> >Matthias Wessendorf
> >http://tinyurl.com/fmywh
> >
> >further stuff:
> >blog: http://jroller.com/page/mwessendorf
> >mail: mwessendorf-at-gmail-dot-com
>
> _________________________________________________________________
> Download the new Windows Live Toolbar, including Desktop search!
> http://toolbar.live.com/?mkt=en-gb
>
>


-- 
Grant Smith

RE: t:dataTable with dynamic newspaperColumns

Posted by Yaron Spektor <ya...@b6systems.com>.
Thanks for that,
Did you see the remark you got there today?

-----Original Message-----
From: Michael Matz [mailto:mmatz@kamakuraco.com] 
Sent: Wednesday, November 29, 2006 8:29 PM
To: 'MyFaces Discussion'
Subject: RE: t:dataTable with dynamic newspaperColumns

See issue:
http://issues.apache.org/jira/browse/TOMAHAWK-728




-----Original Message-----
From: Mike Kienenberger [mailto:mkienenb@gmail.com] 
Sent: Tuesday, November 28, 2006 4:53 PM
To: MyFaces Discussion
Subject: Re: t:dataTable with dynamic newspaperColumns

The implementation of get/setNewspaperColumns needs to be patched.
It looks like this:

    public int getNewspaperColumns() {
        return _newspaperColumns;
    }
    public void setNewspaperColumns(int newspaperColumns) {
        this._newspaperColumns = newspaperColumns;
    }

It needs to be rewritten to work like get/setRows so that it first
checks a ValueBinding instead of only working with an int.

    public int getRows()
    {
        if (_rows != null)
            return _rows.intValue();
        ValueBinding vb = getValueBinding("rows");
        Number v = vb != null ? (Number) vb.getValue(getFacesContext())
:
null;
        return v != null ? v.intValue() : DEFAULT_ROWS;
    }

    public void setRows(int rows)
    {
        _rows = new Integer(rows);
        if (rows < 0)
            throw new IllegalArgumentException("rows: " + rows);
    }

Please open a JIRA issue and attach a patch.  Thanks.



On 11/28/06, Yaron Spektor <ya...@b6systems.com> wrote:
> Hi,
> I was wondering if anyone knows why the t:dataTable does not accept a
> backing bean value for the newspaperColumns value-binding?
>
> Where this example works (4 columns):
> <t:dataTable newspaperColumns="4" newspaperOrientation="horizontal"
> value="#{bean.valueList}" var="index" >
>             <h:column>
>                  <h:outputText value="#{index}" />
>         </h:column>
> </t:dataTable>
>
> But this does not:
>
> <t:dataTable newspaperColumns="#{bean.numberOfColumns}"
> newspaperOrientation="horizontal" value="#{bean.valueList}"
var="index"
> >
>             <h:column>
>                  <h:outputText value="#{index}" />
>         </h:column>
> </t:dataTable>
>
> Any work around to that? I can not use the t:columns.
>
> Thanks,
>


RE: t:dataTable with dynamic newspaperColumns

Posted by Michael Matz <mm...@kamakuraco.com>.
See issue:
http://issues.apache.org/jira/browse/TOMAHAWK-728




-----Original Message-----
From: Mike Kienenberger [mailto:mkienenb@gmail.com] 
Sent: Tuesday, November 28, 2006 4:53 PM
To: MyFaces Discussion
Subject: Re: t:dataTable with dynamic newspaperColumns

The implementation of get/setNewspaperColumns needs to be patched.
It looks like this:

    public int getNewspaperColumns() {
        return _newspaperColumns;
    }
    public void setNewspaperColumns(int newspaperColumns) {
        this._newspaperColumns = newspaperColumns;
    }

It needs to be rewritten to work like get/setRows so that it first
checks a ValueBinding instead of only working with an int.

    public int getRows()
    {
        if (_rows != null)
            return _rows.intValue();
        ValueBinding vb = getValueBinding("rows");
        Number v = vb != null ? (Number) vb.getValue(getFacesContext()) :
null;
        return v != null ? v.intValue() : DEFAULT_ROWS;
    }

    public void setRows(int rows)
    {
        _rows = new Integer(rows);
        if (rows < 0)
            throw new IllegalArgumentException("rows: " + rows);
    }

Please open a JIRA issue and attach a patch.  Thanks.



On 11/28/06, Yaron Spektor <ya...@b6systems.com> wrote:
> Hi,
> I was wondering if anyone knows why the t:dataTable does not accept a
> backing bean value for the newspaperColumns value-binding?
>
> Where this example works (4 columns):
> <t:dataTable newspaperColumns="4" newspaperOrientation="horizontal"
> value="#{bean.valueList}" var="index" >
>             <h:column>
>                  <h:outputText value="#{index}" />
>         </h:column>
> </t:dataTable>
>
> But this does not:
>
> <t:dataTable newspaperColumns="#{bean.numberOfColumns}"
> newspaperOrientation="horizontal" value="#{bean.valueList}" var="index"
> >
>             <h:column>
>                  <h:outputText value="#{index}" />
>         </h:column>
> </t:dataTable>
>
> Any work around to that? I can not use the t:columns.
>
> Thanks,
>


Re: t:dataTable with dynamic newspaperColumns

Posted by Mike Kienenberger <mk...@gmail.com>.
The implementation of get/setNewspaperColumns needs to be patched.
It looks like this:

    public int getNewspaperColumns() {
        return _newspaperColumns;
    }
    public void setNewspaperColumns(int newspaperColumns) {
        this._newspaperColumns = newspaperColumns;
    }

It needs to be rewritten to work like get/setRows so that it first
checks a ValueBinding instead of only working with an int.

    public int getRows()
    {
        if (_rows != null)
            return _rows.intValue();
        ValueBinding vb = getValueBinding("rows");
        Number v = vb != null ? (Number) vb.getValue(getFacesContext()) : null;
        return v != null ? v.intValue() : DEFAULT_ROWS;
    }

    public void setRows(int rows)
    {
        _rows = new Integer(rows);
        if (rows < 0)
            throw new IllegalArgumentException("rows: " + rows);
    }

Please open a JIRA issue and attach a patch.  Thanks.



On 11/28/06, Yaron Spektor <ya...@b6systems.com> wrote:
> Hi,
> I was wondering if anyone knows why the t:dataTable does not accept a
> backing bean value for the newspaperColumns value-binding?
>
> Where this example works (4 columns):
> <t:dataTable newspaperColumns="4" newspaperOrientation="horizontal"
> value="#{bean.valueList}" var="index" >
>             <h:column>
>                  <h:outputText value="#{index}" />
>         </h:column>
> </t:dataTable>
>
> But this does not:
>
> <t:dataTable newspaperColumns="#{bean.numberOfColumns}"
> newspaperOrientation="horizontal" value="#{bean.valueList}" var="index"
> >
>             <h:column>
>                  <h:outputText value="#{index}" />
>         </h:column>
> </t:dataTable>
>
> Any work around to that? I can not use the t:columns.
>
> Thanks,
>

t:dataTable with dynamic newspaperColumns

Posted by Yaron Spektor <ya...@b6systems.com>.
Hi,
I was wondering if anyone knows why the t:dataTable does not accept a
backing bean value for the newspaperColumns value-binding? 

Where this example works (4 columns):
<t:dataTable newspaperColumns="4" newspaperOrientation="horizontal"
value="#{bean.valueList}" var="index" >
	    <h:column>
        	 <h:outputText value="#{index}" />	    	       	
    	</h:column>
</t:dataTable>

But this does not:

<t:dataTable newspaperColumns="#{bean.numberOfColumns}"
newspaperOrientation="horizontal" value="#{bean.valueList}" var="index"
>
	    <h:column>
        	 <h:outputText value="#{index}" />	    	       	
    	</h:column>
</t:dataTable>

Any work around to that? I can not use the t:columns.

Thanks,

Re: Example jars

Posted by Marcus Bond <ma...@hotmail.com>.
Great, thanks!


>From: "Matthias Wessendorf" <ma...@apache.org>
>Reply-To: "MyFaces Discussion" <us...@myfaces.apache.org>
>To: "MyFaces Discussion" <us...@myfaces.apache.org>
>Subject: Re: Example jars
>Date: Fri, 24 Nov 2006 17:52:05 +0100
>
>not up to date, but here:
>
>http://people.apache.org/repo/m2-snapshot-repository/org/apache/myfaces/tomahawk/myfaces-example-simple/1.1.4-SNAPSHOT/
>
>On 11/24/06, Marcus Bond <ma...@hotmail.com> wrote:
>>Thanks, provides a fair bit of info.
>>Are there are any projects for download so the java source in backing 
>>beans
>>can be looked at?
>>
>>
>> >From: "Sudhakar Mekathotti" <me...@gmail.com>
>> >Reply-To: "MyFaces Discussion" <us...@myfaces.apache.org>
>> >To: "MyFaces Discussion" <us...@myfaces.apache.org>
>> >Subject: Re: Example jars
>> >Date: Fri, 24 Nov 2006 14:47:25 +0000
>> >
>> >Marcus,
>> >
>> >You can see the examples at http://www.irian.at/training.jsf
>> >
>> >
>> >On 11/24/06, Marcus Bond <ma...@hotmail.com> wrote:
>> >>
>> >>Hi,
>> >>Have been looking around the myFaces site trying to find some examples 
>>to
>> >>help out with using tomahawk features and saw a link to example apps 
>>for
>> >>tomahawk. On clicking it I ended up on the page where all the librarys 
>>are
>> >>but the only one with an example was Tobago. Can someone tell me where 
>>the
>> >>tomahawk examples are please?
>> >>
>> >>Also, when trying to use the tomahawk features, I ended up with 
>>problems
>> >>once the filter mapping was placed in web.xml as there was a class not
>> >>found
>> >>exeption which has since been resolved (took a while though to work out
>> >>the
>> >>problem) by including the commons-fileupload.jar file. There is no 
>>mention
>> >>anywhere on the tomahawk page that this jar is required or clue as to
>> >>where
>> >>it can be found. Would it be possible to include this information on 
>>the
>> >>tomahawk pages if only to save others from despair?
>> >>
>> >>Thanks,
>> >>Marcus.
>> >>
>> >>P.S. Love the work of this project!
>> >>
>> >>_________________________________________________________________
>> >>Windows Live™ Messenger has arrived. Click here to download it for 
>>free!
>> >>http://imagine-msn.com/messenger/launch80/?locale=en-gb
>> >>
>> >>
>>
>>_________________________________________________________________
>>Windows Live™ Messenger has arrived. Click here to download it for free!
>>http://imagine-msn.com/messenger/launch80/?locale=en-gb
>>
>>
>
>
>--
>Matthias Wessendorf
>http://tinyurl.com/fmywh
>
>further stuff:
>blog: http://jroller.com/page/mwessendorf
>mail: mwessendorf-at-gmail-dot-com

_________________________________________________________________
Download the new Windows Live Toolbar, including Desktop search! 
http://toolbar.live.com/?mkt=en-gb


Re: Example jars

Posted by Matthias Wessendorf <ma...@apache.org>.
not up to date, but here:

http://people.apache.org/repo/m2-snapshot-repository/org/apache/myfaces/tomahawk/myfaces-example-simple/1.1.4-SNAPSHOT/

On 11/24/06, Marcus Bond <ma...@hotmail.com> wrote:
> Thanks, provides a fair bit of info.
> Are there are any projects for download so the java source in backing beans
> can be looked at?
>
>
> >From: "Sudhakar Mekathotti" <me...@gmail.com>
> >Reply-To: "MyFaces Discussion" <us...@myfaces.apache.org>
> >To: "MyFaces Discussion" <us...@myfaces.apache.org>
> >Subject: Re: Example jars
> >Date: Fri, 24 Nov 2006 14:47:25 +0000
> >
> >Marcus,
> >
> >You can see the examples at http://www.irian.at/training.jsf
> >
> >
> >On 11/24/06, Marcus Bond <ma...@hotmail.com> wrote:
> >>
> >>Hi,
> >>Have been looking around the myFaces site trying to find some examples to
> >>help out with using tomahawk features and saw a link to example apps for
> >>tomahawk. On clicking it I ended up on the page where all the librarys are
> >>but the only one with an example was Tobago. Can someone tell me where the
> >>tomahawk examples are please?
> >>
> >>Also, when trying to use the tomahawk features, I ended up with problems
> >>once the filter mapping was placed in web.xml as there was a class not
> >>found
> >>exeption which has since been resolved (took a while though to work out
> >>the
> >>problem) by including the commons-fileupload.jar file. There is no mention
> >>anywhere on the tomahawk page that this jar is required or clue as to
> >>where
> >>it can be found. Would it be possible to include this information on the
> >>tomahawk pages if only to save others from despair?
> >>
> >>Thanks,
> >>Marcus.
> >>
> >>P.S. Love the work of this project!
> >>
> >>_________________________________________________________________
> >>Windows Live™ Messenger has arrived. Click here to download it for free!
> >>http://imagine-msn.com/messenger/launch80/?locale=en-gb
> >>
> >>
>
> _________________________________________________________________
> Windows Live™ Messenger has arrived. Click here to download it for free!
> http://imagine-msn.com/messenger/launch80/?locale=en-gb
>
>


-- 
Matthias Wessendorf
http://tinyurl.com/fmywh

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com

Re: Example jars

Posted by Marcus Bond <ma...@hotmail.com>.
Thanks, provides a fair bit of info.
Are there are any projects for download so the java source in backing beans 
can be looked at?


>From: "Sudhakar Mekathotti" <me...@gmail.com>
>Reply-To: "MyFaces Discussion" <us...@myfaces.apache.org>
>To: "MyFaces Discussion" <us...@myfaces.apache.org>
>Subject: Re: Example jars
>Date: Fri, 24 Nov 2006 14:47:25 +0000
>
>Marcus,
>
>You can see the examples at http://www.irian.at/training.jsf
>
>
>On 11/24/06, Marcus Bond <ma...@hotmail.com> wrote:
>>
>>Hi,
>>Have been looking around the myFaces site trying to find some examples to
>>help out with using tomahawk features and saw a link to example apps for
>>tomahawk. On clicking it I ended up on the page where all the librarys are
>>but the only one with an example was Tobago. Can someone tell me where the
>>tomahawk examples are please?
>>
>>Also, when trying to use the tomahawk features, I ended up with problems
>>once the filter mapping was placed in web.xml as there was a class not
>>found
>>exeption which has since been resolved (took a while though to work out
>>the
>>problem) by including the commons-fileupload.jar file. There is no mention
>>anywhere on the tomahawk page that this jar is required or clue as to
>>where
>>it can be found. Would it be possible to include this information on the
>>tomahawk pages if only to save others from despair?
>>
>>Thanks,
>>Marcus.
>>
>>P.S. Love the work of this project!
>>
>>_________________________________________________________________
>>Windows Live™ Messenger has arrived. Click here to download it for free!
>>http://imagine-msn.com/messenger/launch80/?locale=en-gb
>>
>>

_________________________________________________________________
Windows Live™ Messenger has arrived. Click here to download it for free! 
http://imagine-msn.com/messenger/launch80/?locale=en-gb


Re: Example jars

Posted by Sudhakar Mekathotti <me...@gmail.com>.
Marcus,

You can see the examples at http://www.irian.at/training.jsf


On 11/24/06, Marcus Bond <ma...@hotmail.com> wrote:
>
> Hi,
> Have been looking around the myFaces site trying to find some examples to
> help out with using tomahawk features and saw a link to example apps for
> tomahawk. On clicking it I ended up on the page where all the librarys are
> but the only one with an example was Tobago. Can someone tell me where the
> tomahawk examples are please?
>
> Also, when trying to use the tomahawk features, I ended up with problems
> once the filter mapping was placed in web.xml as there was a class not
> found
> exeption which has since been resolved (took a while though to work out
> the
> problem) by including the commons-fileupload.jar file. There is no mention
> anywhere on the tomahawk page that this jar is required or clue as to
> where
> it can be found. Would it be possible to include this information on the
> tomahawk pages if only to save others from despair?
>
> Thanks,
> Marcus.
>
> P.S. Love the work of this project!
>
> _________________________________________________________________
> Windows Live™ Messenger has arrived. Click here to download it for free!
> http://imagine-msn.com/messenger/launch80/?locale=en-gb
>
>