How to add component for Mashup4JFS

6 views
Skip to first unread message

Noni

unread,
Mar 21, 2011, 4:30:07 AM3/21/11
to mashups...@googlegroups.com
Hi Hazem and All,

I'm currently being studied the Mashup4JFS, and I wish can add component the Mashup4JFS of Services.

How to add component for Mashup4JFS!?, 

I trace the Mashup4JFS of source code, to try and catch from taglib.xml, *.tld, with other source code,

But I have no idea, Can anyone give me some advice!, Thanks!

Hazem Saleh

unread,
Mar 22, 2011, 12:31:31 AM3/22/11
to mashups...@googlegroups.com
Please check this article:
http://www.ibm.com/developerworks/opensource/library/os-mashups4JSF/index.html
--
Hazem Ahmed Saleh Ahmed

Author of (The Definitive Guide to Apache MyFaces and Facelets):
http://www.amazon.com/Definitive-Guide-Apache-MyFaces-Facelets/dp/1590597370
http://www.amazon.com/-/e/B002M052KY

Visualize and share your social networks 2D and 3D:

Noni

unread,
Mar 25, 2011, 8:15:58 AM3/25/11
to mashups4jsf-dev
Dear Hazem,

I missed this important document, Thank for your support!

Noni

On 3月22日, 下午12時31分, Hazem Saleh <haz...@apache.org> wrote:
> Please check this article:http://www.ibm.com/developerworks/opensource/library/os-mashups4JSF/i...
>
> On Mon, Mar 21, 2011 at 3:30 AM, Noni <noni.ji...@gmail.com> wrote:
> > Hi Hazem and All,
>
> > I'm currently being studied the Mashup4JFS, and I wish can add component
> > the Mashup4JFS of Services.
>
> > How to add component for Mashup4JFS!?,
>
> > I trace the Mashup4JFS of source code, to try and catch from taglib.xml,
> > *.tld, with other source code,
>
> > But I have no idea, Can anyone give me some advice!, Thanks!
>
> --
> Hazem Ahmed Saleh Ahmed
>
> Author of (The Definitive Guide to Apache MyFaces and Facelets):http://www.amazon.com/Definitive-Guide-Apache-MyFaces-Facelets/dp/159...http://www.amazon.com/-/e/B002M052KY

Noni

unread,
Mar 31, 2011, 11:08:15 AM3/31/11
to mashups4jsf-dev
Hi Hazem,

I wish use Mashups4JFS with My local Apps to combin and first need to
custome component of local Apps for Mashups4JFS,
I have read “An introduction to Mashups4JSF” with to trace
“mashups4jsf-trunk” of source code, but fill have a few problems and
again consult.

I to refer the “YahooWeather.java” to save as “TestWeaher.java”, But
my xhtml call <localApps:TestWeaher> of method is not shown,
I found Mashups4JFS on JSF 2, a few method is deprecated e.g.
ValueBinding (by YahooWeather.java), I rewrite as below is good?

/* YahooWeather.java Line 44*/

//ValueBinding vb = getValueBinding("locationCode");
//return vb != null ? (java.lang.String)
vb.getValue(getFacesContext()) : "94089";

[chang to]

ValueExpression ve = getValueExpression("locationCode");
if(ve != null) {
return ve != null ? (java.lang.String)
ve.getValue(getFacesContext().getELContext()) : "94089";
} else {
return null;
}

==========================================================

I think to check echo layer of through for Mashups4JFS Framework,
Create a new component only to create and update as below on
Mashup4JFS?

1. LocaAppsServices.java
2. LocaAppsServicesTag.java
3. face-config.xml
4. LocaApps.tld
5. LocaApps.taglib.xml
6. LocaAppsServicesRenderer.java

But “YahooServicesFactory.java” and
“com.googlecode.mashups4jsf.common.util.ComponentConstants;” must to
implement?

Additionally, Custome component is must add to M4J core src and build
as jar?

Or my project use M4J core libs can with my custome component(external
for project src) to combin?
I’m use xhtml to show the localApps can get table data or other M4J
component, e.g. locationCode="#{selectedPlace.postalCode}", by
theater2.xhtml

I hope that will not cause you trouble, Thanks!

Noni

On 3月22日, 下午12時31分, Hazem Saleh <haz...@apache.org> wrote:
> Please check this article:http://www.ibm.com/developerworks/opensource/library/os-mashups4JSF/i...
>
> On Mon, Mar 21, 2011 at 3:30 AM, Noni <noni.ji...@gmail.com> wrote:
> > Hi Hazem and All,
>
> > I'm currently being studied the Mashup4JFS, and I wish can add component
> > the Mashup4JFS of Services.
>
> > How to add component for Mashup4JFS!?,
>
> > I trace the Mashup4JFS of source code, to try and catch from taglib.xml,
> > *.tld, with other source code,
>
> > But I have no idea, Can anyone give me some advice!, Thanks!
>
> --
> Hazem Ahmed Saleh Ahmed
>
> Author of (The Definitive Guide to Apache MyFaces and Facelets):http://www.amazon.com/Definitive-Guide-Apache-MyFaces-Facelets/dp/159...http://www.amazon.com/-/e/B002M052KY
Reply all
Reply to author
Forward
0 new messages