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!
> 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