Re: T5.3 Select Component onValueChanged never fired

2013-01-23 Thread wesleywj2
hi,

thanks for the reply, however i found out the culprit. it's my submit
button, it has a clickonce mixin which prevent the ajax method calling. when
i removed it, it works ok. i guess the mixin of clickonce is not working
very well now.



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/T5-3-Select-Component-onValueChanged-never-fired-tp5719403p5719438.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



T5.3 Select Component onValueChanged never fired

2013-01-21 Thread wesleywj2
hi,

i recently implemented the country and state/province select component where
select particular country will load the state/province based on that
country. The problem is that when i changed the Value of select in country
component, the onValueChanged method never fired on server side. i put some
debug statement on this method, it never show anything. i just want it doing
it an AJAX way, but if the valueChanged method never triggered i can't do
anything about it. 

i did open up a new sample tapestry 5 project and implement the same logic
and it works. i wondered what other things could have cause my main project
to fail. please advice..

regards,
wesley 



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/T5-3-Select-Component-onValueChanged-never-fired-tp5719403.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



T5: How to Select Component with Encoder shows multiple label?

2012-07-30 Thread wesleywj2
hi,

i have a valueEncoder implemented as List of object used for select
component, currently the label of the select component is always the id of
object, but i want to show the label as multiple field from the object
itself. eg. my DataObject class has 3 private fields 

1) dataId
2) dataCode
3) dataName

currently the select component just show dataId field as the drop down
selection.

what i want is that the label will show dataCode concatenate with dataName. 

please advice



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/T5-How-to-Select-Component-with-Encoder-shows-multiple-label-tp5714875.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



T5.2: How to block UI and disable double click upon form submission?

2012-07-09 Thread wesleywj2
Hi,

I wondered how do i block the UI when user click/double click the submit
button upon form submission? T5 has any UI block script to help out? please
advice

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/T5-2-How-to-block-UI-and-disable-double-click-upon-form-submission-tp5714365.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



T5.2 How to submit t:Form with POST parameters to external https link?

2012-06-03 Thread wesleywj2
hi,

I'm having a problem on how to submit my form along with parameters using
method POST to external https link? As i'm aware, Tapestry's t:form doesn't
have action attribute that can link to other url. I have no control on the
external url, my job is just to have a form and submit to the url along with
the parameters.

On Tapestry 5, my java bean has onSuccess method; but it can only return
page within my webapps.

please advice,
wesley

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/T5-2-How-to-submit-t-Form-with-POST-parameters-to-external-https-link-tp5713601.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



T5.3.1 How to show image modal dialog popup with prototype js?

2012-05-15 Thread wesleywj2
hi,

i have a page with few thumbnails, each thumbnail when click will load a
bigger image in modal window with close button on it, something like 
http://lokeshdhakar.com/projects/lightbox2/ lightbox 2 

but it uses jquery, i would like to use prototype/scriptaculous to solve
this since its already bundled with Tapestry. i just need a very simple
click show, click close image viewer.

please advice,
wesley

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/T5-3-1-How-to-show-image-modal-dialog-popup-with-prototype-js-tp5710208.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: T5.3.1 How to expand all the tree nodes?

2012-05-14 Thread wesleywj2
Hi Lance,

Thanks for the pointer, works great, thank you very much

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/T5-3-1-How-to-expand-all-the-tree-nodes-tp5702736p5708795.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: T5.3.1 How to expand all the tree nodes?

2012-05-13 Thread wesleywj2
hi Lance,

can you give me an idea on recursive calling on this tree's deeply nested
object recursive call?

i just can't think of the way to this recursively, please advice and easy
example would be helpful. thank you

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/T5-3-1-How-to-expand-all-the-tree-nodes-tp5702736p5708646.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



T5.3.1 How to expand all the tree nodes?

2012-05-11 Thread wesleywj2
hi,

i need advice on how to expand the tree node with eventlink, currently based
on the example from 

http://jumpstart.doublenegative.com.au/jumpstart/examples/component/treebrowse
http://jumpstart.doublenegative.com.au/jumpstart/examples/component/treebrowse 

it has only the collapse function.

please advice

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/T5-3-1-How-to-expand-all-the-tree-nodes-tp5702736.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



how to load Tapestry 5.3 data with xml document?

2012-03-19 Thread wesleywj2
hi,

i'm currently trying out the tapestry 5.3 new tree component and after
searched through and study the demo from :-

http://jumpstart.doublenegative.com.au/jumpstart/examples/component/treebrowse

i realized its a recursive tree which i'm not very good at. such that i
think there must be an easier way where the tree component can load the
result directly from xml document since its already hierarchical. anyway can
do this? i can travese the xml dom document with no problem; i just have no
idea how to load the data in it as a java object to be be rendered in t:tree
component.

my dummy data is:-
sp spid=001 spname=ROOT
sp spid=002 spname=JOHNNY
sp spid=004 spname=KEN/
sp spid=005 spname=RYU/
/sp
sp spid=003 spname=ALEX
sp spid=006 spname=BISON/
sp spid=007 spname=VEGA/  
/sp
/sp

please advice
wesley

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/how-to-load-Tapestry-5-3-data-with-xml-document-tp5576256p5576256.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



How to update the third party library as maven dependency into T5.3 project?

2012-03-13 Thread wesleywj2
hi,

i'm new to maven project build, i successfully build a maven project of T5.3
and load to my eclipse IDE as workspace. everything work as expected with
jetty run and view on the sample app. but i wanted to include the oracle
jdbc driver ojdbc6.jar as my project dependency. how do i do that? i had
downloaded the jar file but have no idea how to include it in my project.
please advice

wesley

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/How-to-update-the-third-party-library-as-maven-dependency-into-T5-3-project-tp5561813p5561813.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: How to update the third party library as maven dependency into T5.3 project?

2012-03-13 Thread wesleywj2
hi,

thanks for all of your pointer, i got it work. thank you

wesley

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/How-to-update-the-third-party-library-as-maven-dependency-into-T5-3-project-tp5561813p5561986.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Accessing the problem on T5.1 regarding Locale switching

2011-12-09 Thread wesleywj2
hi angelo,

thanks for the quick reply, you pointed it, my url has zh when locale took
place, when i click on the navigation , the zh disappear!, wonder why is
that? something i need to tweak on the navigation link? perhaps? a symbol?

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Accessing-the-problem-on-T5-1-regarding-Locale-switching-tp5060950p5061056.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Accessing the problem on T5.1 regarding Locale switching

2011-12-09 Thread wesleywj2
hi angelo,

thanks much, it's really the link problem; thank you very much for pointing
out

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Accessing-the-problem-on-T5-1-regarding-Locale-switching-tp5060950p5062656.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Accessing the problem on T5.1 regarding Locale switching

2011-12-08 Thread wesleywj2
hi all,

i facing a very difficult situation where my application needs to switch
between locale of english and chinese.
my page has a tile like border component and a body. I implemented an
actionlink on the border component which can switch language. i successfully
switch the language from english to chinese, but the real problem is when i
navigate to other pages, it swithed back to english. 

i override configuration under AppModule the method
contributeApplicationDefaults
and provide this:-

configuration.add(SymbolConstants.SUPPORTED_LOCALES, en,zh);

i code every properties file in UTF-8 file
format(app.properties,app_zh.properties), still it behave the same. 
is this Tapestry 5.1's known bugs? 

i tried to upgrade to T5.2 with spring 2.5 but it didn't even start
correctly on my app server tomcat 6 eventhough i follow the documentation
guide step by step. 

please please advice, i'm running out of time and idea, please help me

wesley


--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Accessing-the-problem-on-T5-1-regarding-Locale-switching-tp5060950p5060950.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Tapestry 5.1 + Spring 2.06 + Oracle 11g has problem on handling non english encoding

2011-11-17 Thread wesleywj2
hi thiago,

thanks for the prompt reply, it really is jdbc problem, i resolved it.
thanks

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Tapestry-5-1-Spring-2-06-Oracle-11g-has-problem-on-handling-non-english-encoding-tp4999736p5002293.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



T5.1 locale switch back to default english after navigate to other page

2011-11-17 Thread wesleywj2
hi there,

i successfully switch the locale between english and chinese zh_CN within
a page, but encountered a problem where once i switch to chinese and
navigate to other pages with actionlink,submit etc, the other page switched
back to default english. how do i keep the locale persisted for all pages
after locale switching?

please advice,
wesleywj2

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/T5-1-locale-switch-back-to-default-english-after-navigate-to-other-page-tp5002303p5002303.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: T5.1 locale switch back to default english after navigate to other page

2011-11-17 Thread wesleywj2
hi,

my page is using border, where i wrote

@Inject private PersistentLocale peLocale;

@OnEvent(component=switchlocale)
void changeLocale(){
if(currentLocale.equals(Locale.CHINESE)){
peLocale.set(Locale.ENGLISH);
}else{
peLocale.set(Locale.CHINESE);
}
}

i did use PersistentLocale to switch the locale, but it still changed back
to english after navigate to other page. please advice


--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/T5-1-locale-switch-back-to-default-english-after-navigate-to-other-page-tp5002303p5003295.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Tapestry 5.1 + Spring 2.06 + Oracle 11g has problem on handling non english encoding

2011-11-16 Thread wesleywj2
hi,

currently my development are using 

T5.1 integrate with Spring 2.06 and using spring's StoredProcedure to
perform db operations in Oracle.
the container is Tomcat 6.0.29.

I set the meta tag to UTF-8 for all .tml pages, the chinese character
rendered correctly. 
On the database test, created a table with NVARCHAR2, test stored the
character also worked correctly.

However, when i insert chinese character into text field, and try to insert
it, it throws 
CallableStatementCallback; uncategorized SQLException for SQL [{call
TESTPROC(?)}]; SQL state [9]; error code [17004]; Invalid column type;
nested exception is java.sql.SQLException: Invalid column type

i'm sure db is working fine on storing and viewing the data, but other than
that what do i need to set?
am i missing something? please advice

wesley

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Tapestry-5-1-Spring-2-06-Oracle-11g-has-problem-on-handling-non-english-encoding-tp4999736p4999736.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



T5: how do i style variable of string and show it in tml?

2011-10-06 Thread wesleywj2
hello,

i would like to know how to style the variable in tml page. for eg. in my
java class has a private String myMessage, normally i would just show
${myMessage} in my tml file. But the thing is i want to style it, like
putting br/ or p tag within that variable so it will style accordingly.
Is that possible? 

please advice,

wesley

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/T5-how-do-i-style-variable-of-string-and-show-it-in-tml-tp4876011p4876011.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: T5: how do i style variable of string and show it in tml?

2011-10-06 Thread wesleywj2
hi jens,

it works, thank you very much

regards,
wesley

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/T5-how-do-i-style-variable-of-string-and-show-it-in-tml-tp4876011p4876231.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: T5 capture keyboard events?

2010-12-06 Thread wesleywj2

hi,

thks for reply, i've never used custom javascript and load into tapestry
before,
most of the time just use the Annotation @IncludeJavaScriptLibrary, is that
the way? 
perhaps if i have a javascript written my own, how do i include it? please
advice
-- 
View this message in context: 
http://tapestry.1045711.n5.nabble.com/T5-capture-keyboard-events-tp3293142p3293942.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



T5 capture keyboard events?

2010-12-05 Thread wesleywj2

hi,

i would like to know if Tapestry 5 can accept keyboard input such as CRTL
and SHIFT and some other key like 'M' etc?

please advice,
wesleywj2 
-- 
View this message in context: 
http://tapestry.1045711.n5.nabble.com/T5-capture-keyboard-events-tp3293142p3293142.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



how to implement Tapestry.waitForPage(event) ?

2010-01-07 Thread wesleywj2

hi,

i saw this feature on waiting response page, but what about the code behind?
do i need to implement/override the handler? i put this code on tml on one
of my submit button

javascript:Tapestry.waitForPage(event);

but it doesn't show the greyed area.. did i miss something here? the video
just showed it in action but not the code. please advice..

regards,
wesley
-- 
View this message in context: 
http://old.nabble.com/how-to-implement-Tapestry.waitForPage%28event%29---tp27062739p27062739.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



T5: create directory permission denied

2009-12-28 Thread wesleywj2

hi,

i'm actually create directory to store image after user upload the image.
i'm using java.io for directory creation. but on the log, the application
fails to create directory, testing on the folder write access is false,
permission denied. i know this has something to do with permission, but
where this leads me? please advice

i'm using tomcat 6, tapestry 5.1+spring framework 2.0.6, the directory i
wish to write into is located directly inside my webapp.

seeking advice,
wesley
-- 
View this message in context: 
http://old.nabble.com/T5%3A-create-directory-permission-denied-tp26951245p26951245.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



T5 how to create another css style for t:grid?

2009-12-16 Thread wesleywj2

hi,

I would like to create another css styles for t:grid use explicitly on
certain page, how to achieve this? i tried copy the default styles from T5
to another external css and modify, but it seems to take back the original.

please advice,
wesley
-- 
View this message in context: 
http://old.nabble.com/T5-how-to-create-another-css-style-for-t%3Agrid--tp26818740p26818740.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



[T5] IE 8+Stack Overflow At Line:0

2009-12-03 Thread wesleywj2

hi,

I got this weird problem on 1 of the tml page of mine, it uses quite
intensive amount of zone and updates. whenever i refresh the view,
specifically only IE prompt this message out Stack Overflow At Line:0 and
i need to click the ok button several times to ge rid of it. googling
around, it says that it is the javascript that caused it nothing to do with
web browser, but it works perfectly in firefox. 

need advice and pinpoint whether this is browser problem or framework
problem?

wesley
-- 
View this message in context: 
http://old.nabble.com/-T5--IE-8%2BStack-Overflow-At-Line%3A0-tp26627721p26627721.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



[T5.1]: How to use MultiZoneUpate?

2009-11-29 Thread wesleywj2

hi,

I'm confuse as how do i use MultiZoneUpdate component, let's say i have 2
zone with predefined zone id shown below:

t:zone t:id=C1
   ${field1}
/t:zone
t:zone t:id=C2
   ${field2}
/t:zone

i have an actionlink, when clicked, it will perform some calculation and
update the above zone C1  C2. please advice,

regards,
wesley



-- 
View this message in context: 
http://old.nabble.com/-T5.1-%3A-How-to-use-MultiZoneUpate--tp26565035p26565035.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: [T5.1]: How to use MultiZoneUpate?

2009-11-29 Thread wesleywj2

hi Thiago,

thanks for the pointer.

regards,
wesley
-- 
View this message in context: 
http://old.nabble.com/-T5.1-%3A-How-to-use-MultiZoneUpate--tp26565035p26565691.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



[T5.1.05] Possibly t:loop bug?

2009-11-29 Thread wesleywj2

hi,

I've been using Tapestry 5.0 and recently upgraded to T5.1.05, my t:loop
component works fine before that. But I encountered this error everytime i
submit/refresh page

++
Caused by: java.lang.IllegalArgumentException: Could not find a coercion
from type java.lang.String to type com.wx.pojo.MyProcObj.  Available
coercions: Double -- Float, Float -- Double, Long -- Boolean  etc
(list is long)
++


TML file
--- 
t:loop t:source=newProcList t:value=myProcObj
${myProcObj.names}br/
${myProcObj.age}
/t:loop

Java File

@Property
@Persist
private MyProcObj myProcObj;

@Property
@Persist
private ListMyProcObj newProcList;

@Inject
private MyProcDao myProcDao;

private Object nextPage;

void setupRender(){
newProcList = myProcDao.getProcList();

newProcList = newProcList==null?new ArrayListMyProcObj():newProcList;
}

Object onSuccess(){
nextPage = null;
return nextPage;
}

Previously it works fine, and this problem only occur when i click submit
button, but then i checked through, on submit it didn't do anything but just
refresh the page, thus setupRender fired to get the List value. 

please advice

desperately need guidance,
wesley

-- 
View this message in context: 
http://old.nabble.com/-T5.1.05--Possibly-t%3Aloop-bug--tp26565852p26565852.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: [T5.1.05] Possibly t:loop bug?

2009-11-29 Thread wesleywj2

Oh it works!!, care to share your thoughts on this? what is this
formState=NONE??

regards,
wesley


-- 
View this message in context: 
http://old.nabble.com/-T5.1.05--Possibly-t%3Aloop-bug--tp26565852p26566010.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



T5: Can read/write directory outside of ContextPath?

2009-10-22 Thread wesleywj2

hi there,

i have 2 application written using T5.1 named ax and ux both deployed in
Tomcat6/webapps directory.
However, I would like to create a new folder call myimage deployed same
level in Tomcat6/webapps which can be read/write by ax or ux apps. Is
this possible? please advice..

thanks and regards,
wesley
-- 
View this message in context: 
http://www.nabble.com/T5%3A-Can-read-write-directory-outside-of-ContextPath--tp26012278p26012278.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: T5: Can read/write directory outside of ContextPath?

2009-10-22 Thread wesleywj2

hi angelo,

how do i create symbolic link? i'm using windows instead of unix for this.
perhaps you can guide me with a little short example perhaps? please
advice..


-- 
View this message in context: 
http://www.nabble.com/T5%3A-Can-read-write-directory-outside-of-ContextPath--tp26012278p26012583.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Separating request handler between T5 and spring 2.0.6's DispatcherServlet

2009-08-24 Thread wesleywj2

hi,

i've been developing an webapps using T5 with spring 2.0.6 library. Main
focus of T5 is to serve as front page and logic with business model using
spring 2.0.6. I still have a tonnes of spring controller and i would like to
make use of it by calling it directly. But as i aware, Tapestry 5 acts as a
very thin layer by applying a filter in front. based on the example as below
i implemented in my web.xml:-

context-param
param-nametapestry.app-package/param-name
param-valuecom.wx/param-value
/context-param

context-param
param-namecontextConfigLocation/param-name
param-value
WEB-INF/spring-security.xml
WEB-INF/spring-data.xml
WEB-INF/spring-service.xml
/param-value
/context-param

listener

listener-classorg.springframework.web.context.ContextLoaderListener/listener-class
/listener


filter
filter-nameapp/filter-name

filter-classorg.apache.tapestry5.spring.TapestrySpringFilter/filter-class
/filter

filter-mapping
filter-nameapp/filter-name
url-pattern/*/url-pattern
/filter-mapping

servlet
servlet-namespring/servlet-name

servlet-classorg.springframework.web.servlet.DispatcherServlet/servlet-class
/servlet
servlet-mapping
servlet-namespring/servlet-name
url-pattern*.tx/url-pattern
/servlet-mapping



TapestrySpringFilter is intercepting all the request with pattern
url-pattern/*/url-pattern. my question is how do i call spring's
DispatcherServlet and let it handle by spring itself. all my spring request
ended with .wx suffix. how do i separate it so that spring will handle all
the request with suffix of .wx and left others to T5?

please advice,
wesley
-- 
View this message in context: 
http://www.nabble.com/Separating-request-handler-between-T5-and-spring-2.0.6%27s-DispatcherServlet-tp25114168p25114168.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Separating request handler between T5 and spring 2.0.6's DispatcherServlet

2009-08-24 Thread wesleywj2

hello Ulrich, thanks so much for the pointer; it's working good now.

regards,
wesley
-- 
View this message in context: 
http://www.nabble.com/Separating-request-handler-between-T5-and-spring-2.0.6%27s-DispatcherServlet-tp25114168p25123675.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



show empty textfield for integer/double property

2009-06-17 Thread wesleywj2

hi,

is there any way to remove or not to show the 0 or 0.0 for t:textfield
that bound to integer/double property? in my class file MyPage.java, i
have 

public class MyPage{
@Property
@Persist
private int theValue;
}

for MyPage.tml in t:form:

input type=text t:type=TextField t:value=theValue/

it shows 0 because it is integer type in the textfield, what i wanted to
achieve is to not showing anything on the textfield at all. can this be
done?

please advice.

wesley

-- 
View this message in context: 
http://www.nabble.com/show-empty-textfield-for-integer-double-property-tp24081871p24081871.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: show empty textfield for integer/double property

2009-06-17 Thread wesleywj2

thanks Thiago, it works out alright. thanks much



Thiago H. de Paula Figueiredo wrote:
 
 Em Wed, 17 Jun 2009 17:53:43 -0300, wesleywj2 wesley...@yahoo.co.uk  
 escreveu:
 
 hi,
 
 Hi!
 
 public class MyPage{
 @Property
 @Persist
 private int theValue;
 }
 
 Try changing the type from int to Integer. As any other ordinary Java int  
 field, it is automatically initialized with 0 when the instance is built.  
 Null Integer values are shown as blank space in the TextField component.
 
 -- 
 Thiago H. de Paula Figueiredo
 Independent Java consultant, developer, and instructor
 http://www.arsmachina.com.br/thiago
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/show-empty-textfield-for-integer-double-property-tp24081871p24083213.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



How to stream zip file

2009-06-04 Thread wesleywj2

hi,

I couldn't figured it out for streaming zip files with StreamResponse
interface. With my current implementation based on the Tapestry 5 site wiki
tutorial example, i stream txt file.

what i want to achieve now is to create few files in memory (eg. file1.txt 
file2.txt), zip it and return it to user's browser. i've googled around and
found out an API for ZipOutputStream. But i had no idea how to implement it
using Tapestry 5's StreamResponse interface.

please advice.

wesley
-- 
View this message in context: 
http://www.nabble.com/How-to-stream-zip-file-tp23877671p23877671.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Exception while http://localhost:8080/myapp/index.pageForm

2009-04-27 Thread wesleywj2

hi,

when i type this url in my browser and hit enter,
http://localhost:8080/myapp/index.pageForm
it throws Forms require that the request method be POST and that the
t:formdata query parameter have values. exception. index is my first/login
page, where pageForm is the id of my form. why it throws error? anyway to
intercept it? and show other page other than the standard exception page?

please advice,
wesley
-- 
View this message in context: 
http://www.nabble.com/Exception-while-http%3A--localhost%3A8080-myapp-index.pageForm-tp23252483p23252483.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Exception while http://localhost:8080/myapp/index.pageForm

2009-04-27 Thread wesleywj2

that is the problem, typically when user close their browser, they will save
the state as index.pageForm, i don't know why. they will either hit the
refresh button or hit enter button on the address bar and cause this
exception to be thrown. what's really uneasy is the exception shows up all
the app server information. i know i can turn the app to production mode,
but it just doesn't look nice. is there any way to throw custom exception
page when it hits this error?

please advice,
wesley



Onno Scheffers-3 wrote:
 
 You should type the url of your page in the browser and not the url of
 your
 component:
 http://localhost:8080/myapp/indexhttp://localhost:8080/myapp/index.pageForm
 
 Typing an URL in the browser typically causes a GET-request instead of a
 POST-request. The form-component is part of the page and will
 automatically
 POST its query-parameters to http://localhost:8080/myapp/index.pageForm
 when
 the form is submitted in the browser.
 
 
 - Onno
 
 
 
 On Mon, Apr 27, 2009 at 11:03 AM, wesleywj2 wesley...@yahoo.co.uk wrote:
 

 hi,

 when i type this url in my browser and hit enter,
 http://localhost:8080/myapp/index.pageForm
 it throws Forms require that the request method be POST and that the
 t:formdata query parameter have values. exception. index is my
 first/login
 page, where pageForm is the id of my form. why it throws error? anyway to
 intercept it? and show other page other than the standard exception page?

 please advice,
 wesley
 --
 View this message in context:
 http://www.nabble.com/Exception-while-http%3A--localhost%3A8080-myapp-index.pageForm-tp23252483p23252483.html
 Sent from the Tapestry - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org


 
 
 -- 
 *
 Winston
 Churchillhttp://www.brainyquote.com/quotes/authors/w/winston_churchill.html
 - The best argument against democracy is a five-minute conversation
 with
 the average voter.
 
 

-- 
View this message in context: 
http://www.nabble.com/Exception-while-http%3A--localhost%3A8080-myapp-index.pageForm-tp23252483p23258838.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



T5 How to onLoad focus() to textfield in Layout component

2009-04-15 Thread wesleywj2

hi,

i'm trying to do an automatic focus on 1 of 3 textfield input upon the page
render. 

so i thought in my textfield 

input type=text t:type=TextField t:value=text1
onchange=this.form.submit()/

upon resubmit this page, the onLoad attribute in body can call the
javascript 
document.getElementById('text1').focus();

but the environment of my page is using Layout component, the textfield in
the page does not have a body and i have to include it under my layout.tml
which fails as the browser could not locate the id since its all shared by
different pages.

anyway i can set the focus upon rerender of pages under my pojo class? in
the documentation, there's no such method. any alternatives is welcome.

please advise.

thanks  regards,
wesley
-- 
View this message in context: 
http://www.nabble.com/T5-How-to-onLoad-focus%28%29-to-textfield-in-Layout-component-tp23055988p23055988.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: T5 How to onLoad focus() to textfield in Layout component

2009-04-15 Thread wesleywj2

thanks so much, simple and efficient. thanks much.

regards,
wesley



Thiago H. de Paula Figueiredo wrote:
 
 Prototype comes to the rescue:
 http://www.prototypejs.org/api/event/observe.
 
 Event.observe(window, 'load', function() {
 $('text1').focus();
 }
 
 -- 
 Thiago
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/T5-How-to-onLoad-focus%28%29-to-textfield-in-Layout-component-tp23055988p23059682.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Logging Setup with T5+Spring 2.06

2009-04-09 Thread wesleywj2

hi,

i have the project going using T5 and Spring 2, and deploy in tomcat 6.0.18.
The problem is how do i configure the logging? 
1) In spring 2? or T5?

2) log4j.properties will be placed under classes under WEB-INF, where do i
setup the logger in order for me to inject into T5 pages and do the logging?

my current environment does not log anything other than tomcat specific
messages. what should i include?

please advise,
wesley
-- 
View this message in context: 
http://www.nabble.com/Logging-Setup-with-T5%2BSpring-2.06-tp22969332p22969332.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: how to use @IncludeJavaScriptLibrary to include more than 1 library in page

2009-02-05 Thread wesleywj2

hi thiago,

sorry to send you directly on the same topic for this question. as i've
implemented the tree object on my web page FF3 works great. but i just don't
understand why IE can't render the tree properly. right after i restarted my
server. when opening the page contained the tree object, it doesn't render. 

as you know tree object is actually ulli/li/ul tag with css
fittings. the plus sign and folder, when clicked on the plus object it will
expand or collapse. but IE browser doesn't render it when i first hit view
the page. i need to keep refresh the page until it render the tree. as i
keep refresh it it will turn back to normal list ul. i did put
@IncludeStylesheet annotation after the @IncludeJavaScriptLibrary before
the my page class name.

i actually saw the error script stated as 'treeObj undefined'
but from my code in page

@AfterRender
public void afterRender() {
String jsString = ;
jsString += Event.observe(window,'load',function(){;
jsString +=  treeObj = new JSDragDropTree(); ;
jsString +=  treeObj.setTreeId('bststruct'); ;
jsString +=  treeObj.setImageFolder('../images/'); ;
jsString +=  treeObj.setRenameAllowed(false); ;
jsString +=  treeObj.setDeleteAllowed(false); ;
jsString +=  treeObj.initTree(); });
renderSupport.addScript(String.format(jsString));
}

i already set it as treeObj. i know this is troublesome, but perhaps you can
give your advise on this? what do you think? from the wiki page
Tapestry5AndJavaScriptExplained the author did mentioned on the tree
construction at last section like this:-

@AfterRender
private boolean phase7() {
heartbeat.end();
//if there is another element in the tree, 
//go to the @BeginRender method again.
return (!iterator.hasNext());
}

@CleanupRender
void phase8(MarkupWriter writer) {
writer.end();
String jsString = ;
jsString += Event.observe( window, 'load', function() {;
jsString +=  %s = new JSDragDropTree(); ;
jsString +=  %s.setTreeId('reporttree'); ;
jsString +=  %s.setImageFolder('../images/tree/'); ;
jsString +=  %s.setRenameAllowed(false); ;
jsString +=  %s.setDeleteAllowed(false); ;
jsString +=  %s.initTree(); ;
jsString +=  %s.expandAll(); ;
jsString +=  } );;
renderSupport.addScript(String.format(jsString,
treeObjectName,
treeObjectName, treeObjectName,
treeObjectName, treeObjectName,
treeObjectName, treeObjectName));
}


i'm really confused, as i don't know where to look to. 

please advise,
wesley
-- 
View this message in context: 
http://www.nabble.com/how-to-use-%40IncludeJavaScriptLibrary-to-include-more-than-1-library-in-page-tp21834042p21856593.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: how to use @IncludeJavaScriptLibrary to include more than 1 library in page

2009-02-05 Thread wesleywj2

oh my... IE really sucks big time but the most unfortunate thing is there
are still many ppl using IE. guess that i need to drop the use of tree
viewing. anyway, thanks for the reply thiago. :)



Thiago H. de Paula Figueiredo wrote:
 
 Em Thu, 05 Feb 2009 14:19:25 -0300, wesleywj2 wesley...@yahoo.co.uk  
 escreveu:
 
 hi thiago,
 
 Hi!
 
 sorry to send you directly on the same topic for this question.
 
 I guess you just sent it to the Tapestry mailing list. :)
 
 as i've
 implemented the tree object on my web page FF3 works great. but i just  
 don't understand why IE can't render the tree properly.
 
 Well, Internet Explorer not rendering something correctly is web design  
 issue, not exactly a Tapestry one. And IE sucks:  
 http://tapestryjava.blogspot.com/2008/06/time-breakdown-of-modern-web-design.html.
 
 i actually saw the error script stated as 'treeObj undefined'
 but from my code in page
 
 This surely looks like a Javascript issue.
 
  @AfterRender
 public void afterRender() {
 
 Make sure your treeObj is created before your Javascript snippet that uses  
 it. Maybe use RenderSupport.addInit(). I really don't know. :(
 
 -- 
 Thiago H. de Paula Figueiredo
 Independent Java consultant, developer, and instructor
 http://www.arsmachina.com.br/thiago
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/how-to-use-%40IncludeJavaScriptLibrary-to-include-more-than-1-library-in-page-tp21834042p21860492.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



beanModelSource.create deprecated, what to use as an alternative?

2009-02-05 Thread wesleywj2

hi,

i've been implementing grid list with an added column using
beanModelSource.create(), but right after i changed the library to
T5.0.18, it is marked as deprecated. any alternative i missed?

usually i add column in tml page with the page class code as below:- 

public BeanModel getModel(){
BeanModel model =
beanModelSource.create(MktMain.class,false,messages);
model.add(topup,null);
return model;
}

any suggestions?

regards,
wesley
-- 
View this message in context: 
http://www.nabble.com/beanModelSource.create-deprecated%2C-what-to-use-as-an-alternative--tp21860716p21860716.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



how to include numbering in grid ? and can t:dateField now allow dd/mmm/yyyy formatting?

2009-02-05 Thread wesleywj2

hi,

its alot to ask for i know, 

1. but how do i include numbering in grid table? like

-
no| column | column |
-
 1 | x   | xx |
-
 2 | | y |
-

2. is there any date formatting for t:dateField available in the latest T5?

 as i know the previous version marked it as unusable.

regards,

wesley
-- 
View this message in context: 
http://www.nabble.com/how-to-include-numbering-in-grid---and-can-t%3AdateField-now-allow-dd-mmm--formatting--tp21860800p21860800.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: beanModelSource.create deprecated, what to use as an alternative?

2009-02-05 Thread wesleywj2

haha, sweet.. thanks man ;)



Thiago H. de Paula Figueiredo wrote:
 
 Em Thu, 05 Feb 2009 17:42:43 -0300, wesleywj2 wesley...@yahoo.co.uk  
 escreveu:
 
 hi,

 i've been implementing grid list with an added column using
 beanModelSource.create(), but right after i changed the library to
 T5.0.18, it is marked as deprecated. any alternative i missed?
 
 Take a look at BeanModelSource's javadoc:  
 http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry5/services/BeanModelSource.html.
   
 ;)
 
 -- 
 Thiago H. de Paula Figueiredo
 Independent Java consultant, developer, and instructor
 http://www.arsmachina.com.br/thiago
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/beanModelSource.create-deprecated%2C-what-to-use-as-an-alternative--tp21860716p21860884.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



how to use @IncludeJavaScriptLibrary to include more than 1 library in page

2009-02-04 Thread wesleywj2

hi,

i followed the wiki how to tutorial from Tapestry5AndJavaScriptExplained and
i wondered how do i include multiple js file in the file and load in
sequence. because i'm using the tree example using JsDragAndDrop, from the
sample code, the js include must be in order. how to achieve this using T5's
@IncludeJavaScriptLibrary?

please advise,
wesley
-- 
View this message in context: 
http://www.nabble.com/how-to-use-%40IncludeJavaScriptLibrary-to-include-more-than-1-library-in-page-tp21834042p21834042.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: how to use @IncludeJavaScriptLibrary to include more than 1 library in page

2009-02-04 Thread wesleywj2

hi thiago,

thanks for the quick reply, btw; after putting that annotation on the page
class; the page should load the js script after the render body, but it
didn't show though. i'm actually implementing the JsTree Component referred
from the wiki how to's. My page has the border.tml and actual content. I've
tried to include it as normal text/javascript script on the border header.
everything works well on Firefox3 but IE throws Operation Aborted Error. I
suspect it must be the script error that causes this. I've actually read
through the previous posting from other users regarding the same problem but
i don't really understand how to implement it inside pages. the link of the
topic is this

http://www.nabble.com/T5-Tree-Component-javascript-and-DOM-td12372202.html#a12372202

please help, your guidance is very much appreciated.

wesley
-- 
View this message in context: 
http://www.nabble.com/how-to-use-%40IncludeJavaScriptLibrary-to-include-more-than-1-library-in-page-tp21834042p21835155.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: how to use @IncludeJavaScriptLibrary to include more than 1 library in page

2009-02-04 Thread wesleywj2

hi thiago,

i've added the configuration inside my AppModule for the javascript:
i 've actually implemented the tree inside my class,

@AfterRender
public void afterRender() {
String jsString = ;
jsString += Event.observe(window,'load',function(){;
jsString +=  treeObj = new JSDragDropTree(); ;
jsString +=  treeObj.setTreeId('bststruct'); ;
jsString +=  treeObj.setImageFolder('../images/'); ;
jsString +=  treeObj.setRenameAllowed(false); ;
jsString +=  treeObj.setDeleteAllowed(false); ;
jsString +=  treeObj.initTree(); ;
renderSupport.addScript(String.format(jsString));
}

next is what about in the tml page? inside the tml should have some code to
linked the renderSupport? i'm totally confused about this as what to write
within the tml page of mine. on the example, it wrote the script right
inside the body content as :-

t:Tree treeid='literal:bststruct' source=treeNodes 
currentNode=node
t:actionlink t:id=tree context=node.identifier
${node.name}
/t:actionlink
/t:Tree

script type=text/javascript
treeObj = new JSDragDropTree();
treeObj.setTreeId('bststruct');
treeObj.setImageFolder('../images/');
treeObj.setRenameAllowed(false);
treeObj.setDeleteAllowed(false);
treeObj.initTree();
/script

please advise,
wesley



Thiago H. de Paula Figueiredo wrote:
 
 Em Wed, 04 Feb 2009 14:20:58 -0300, wesleywj2 wesley...@yahoo.co.uk  
 escreveu:
 
 hi thiago,
 
 Hi!
 
 thanks for the quick reply, btw; after putting that annotation on the  
 page class;
 
 Put it on your component class, so everytime you use your component  
 Tapestry will include the needed Javascript files.
 
 By Tapestry default, the Javascript includes are made at the bottom of the  
 page. You can change this in you AppModule.contributeApplicationDefaults()  
 method setting the tapestry.script-at-top configuration to true (more  
 information at http://tapestry.apache.org/tapestry5/guide/conf.html).
 
 By the way, that tree example does not follow the recomended way of using  
 Javascript in Tapestry. This page explains it very nicely:  
 http://wiki.apache.org/tapestry/Tapestry5AndJavaScriptExplained. Advice:  
 use RenderSupport to add Javascript snippets to your page, not script  
 blocks. ;)
 
 -- 
 Thiago H. de Paula Figueiredo
 Independent Java consultant, developer, and instructor
 http://www.arsmachina.com.br/thiago
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/how-to-use-%40IncludeJavaScriptLibrary-to-include-more-than-1-library-in-page-tp21834042p21836386.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: how to use @IncludeJavaScriptLibrary to include more than 1 library in page

2009-02-04 Thread wesleywj2

oh my gosh! it works like a charm! thanks very very very much on this
thiago.you save my day, i've been cracking my head open the past few days
trying to figure this out. thanks much =D

sincered regards,
wesley


Thiago H. de Paula Figueiredo wrote:
 
 Em Wed, 04 Feb 2009 15:23:41 -0300, wesleywj2 wesley...@yahoo.co.uk  
 escreveu:
 
 hi thiago,
 
 Hi again!
 
 i've added the configuration inside my AppModule for the javascript:
 i 've actually implemented the tree inside my class,

 @AfterRender
 public void afterRender() {
  String jsString = ;
  jsString += Event.observe(window,'load',function(){;
  jsString +=  treeObj = new JSDragDropTree(); ;
  jsString +=  treeObj.setTreeId('bststruct'); ;
  jsString +=  treeObj.setImageFolder('../images/'); ;
  jsString +=  treeObj.setRenameAllowed(false); ;
  jsString +=  treeObj.setDeleteAllowed(false); ;
  jsString +=  treeObj.initTree(); ;
 renderSupport.addScript(String.format(jsString));
 }
 
 Seems ok.
 
 next is what about in the tml page?
 
 Nothing! You should see you Javascript code added to a script tag inside  
 the page.
 
  t:Tree treeid='literal:bststruct' source=treeNodes  
 currentNode=node
  t:actionlink t:id=tree context=node.identifier
  ${node.name}
  /t:actionlink
  /t:Tree

  script type=text/javascript
 treeObj = new JSDragDropTree();
 treeObj.setTreeId('bststruct');
 treeObj.setImageFolder('../images/');
 treeObj.setRenameAllowed(false);
 treeObj.setDeleteAllowed(false);
 treeObj.initTree();
  /script
 
 You should never use a script tag to include Javascript in your .tml file.  
 That's what renderSupport.addScript() does, but it does in the right  
 place. ;)
 
 -- 
 Thiago H. de Paula Figueiredo
 Independent Java consultant, developer, and instructor
 http://www.arsmachina.com.br/thiago
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/how-to-use-%40IncludeJavaScriptLibrary-to-include-more-than-1-library-in-page-tp21834042p21836760.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



T5 tree component

2009-02-03 Thread wesleywj2


-- 
View this message in context: 
http://www.nabble.com/T5-tree-component-tp21825008p21825008.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: change grid table row background color based on column data

2009-01-20 Thread wesleywj2

hello Thiago,

thanks very much, it works great, smooth and accurate. :-)

regards,
wesley


Thiago HP wrote:
 
 On Tue, Jan 20, 2009 at 1:29 AM, wesleywj2 wesley...@yahoo.co.uk wrote:
 
 hi there,
 
 Hi!
 
 i 've wondered how to change the background color of the tr element
 based
 on data?
 normally we just override the css, but on my case, when my data is
 populated; one of my column is a fixed string. based on this column value
 i
 will have a unique background color for it. so how do it i do it with
 T5's
 grid?
 
 Use the rowClass parameter. Something like:
 
 table t:type=Grid t:rowClass=rowClass t:row=object ./
 
 public String getRowClass() {
 if (object.getTag().equals(DP)) {
 return redBackground;
 }
 else {
 return ;
 }
 }
 
 In your CSS:
 
 tr.redBackground {
 background-color: red;
 }
 
 -- 
 Thiago
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/change-grid-table-row-background-color-based-on-column-data-tp21556401p21575926.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



change grid table row background color based on column data

2009-01-19 Thread wesleywj2

hi there,

i 've wondered how to change the background color of the tr element based
on data?

normally we just override the css, but on my case, when my data is
populated; one of my column is a fixed string. based on this column value i
will have a unique background color for it. so how do it i do it with T5's
grid? 

example: 

i have column no,name and tag. tag is the column with some fixed value
(constant). when the tag column value is DP, i want that row to be filled
with red background color. other tag will have different color.

-
no | name | tag |
-
.1  | John  | DP  |
-

please advise,

regards,
wx2
-- 
View this message in context: 
http://www.nabble.com/change-grid-table-row-background-color-based-on-column-data-tp21556401p21556401.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



invalidate single ASO object within session

2008-11-27 Thread wesleywj2

hi there,

i'm currently implementing a project with T5 with spring2. i wonder how do i
invalidate a particular ASO object within a session? because in my session i
have few ASO on user transaction. until certain time, i want to invalidate
some specific ASO, how do i do that? i've tried using appstatemanager in
appmodule. but in my T5 page code, what is the appropriate way to do it?
please advise.

regards
wesleywj2 
-- 
View this message in context: 
http://www.nabble.com/invalidate-single-ASO-object-within-session-tp20722758p20722758.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



create a web organization chart in Tapestry 5

2008-10-22 Thread wesleywj2

hi all,

is there any solution on implementing an interactive org chart that can
respond to events in T5?

please advise,
wesley
-- 
View this message in context: 
http://www.nabble.com/create-a-web-organization-chart-in-Tapestry-5-tp20119734p20119734.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]