Re: Q: Tapestry 5.2.4 + Hibernate 3.6 ?
One more question why it still show this error if I use jetty launcher(It works fine if I use mvn jetty:run) *Exception constructing service 'ValueEncoderSource': Error invoking service builder method org.apache.tapestry5.services.TapestryModule.buildValueEncoderSource(Map, InvalidationEventHub) (at TapestryModule.java:2287) (for service 'ValueEncoderSource'): Error invoking service contribution method org.apache.tapestry5.hibernate.HibernateModule.contributeValueEncoderSource(MappedConfiguration, boolean, HibernateSessionSource, Session, TypeCoercer, PropertyAccess, LoggerSource): Exception constructing service 'HibernateSessionSource': Error invoking service builder method org.apache.tapestry5.hibernate.HibernateCoreModule.buildHibernateSessionSource(Logger, List, RegistryShutdownHub) (at HibernateCoreModule.java:123) (for service 'HibernateSessionSource'): Could not initialize class org.hibernate.annotations.common.reflection.java.JavaReflectionManager* On Sun, Feb 27, 2011 at 2:32 AM, dwi ardi irawan wrote: > Yay. I got it works ! > I forgot to mapped the beans entity on my hibernate configuration > > > > > name="hibernate.connection.driver_class">com.mysql.jdbc.Driver > name="hibernate.connection.url">jdbc:mysql://localhost:3306/tapestryboard > name="hibernate.dialect">org.hibernate.dialect.MySQLDialect > root > > update > true > true > > > > > > > Thnx guys ^^, > > > On Sat, Feb 26, 2011 at 11:29 PM, dwi ardi irawan > wrote: > >> here is my source code >> so it doesn't show an error like it did previously >> but I have to you mvn jetty:run instead of using jetty launcher. >> >> but now, it show : "There is no data to display" >> >> could anyone help me? >> >> >> On Sat, Feb 26, 2011 at 11:17 PM, dwi ardi irawan < >> penyihirke...@gmail.com> wrote: >> >>> Yes, I've checked it. And it doesn't corrupt at all. >>> I think the problem is in the jetty launcher, cos when use mvn jetty:run, >>> it doesn't show any error >>> Strange .... >>> >>> but now there is another problem, now, the page is show: >>> "There is no data to display." >>> >>> my table has only 1 row. >>> >>> >>> >>> On Sat, Feb 26, 2011 at 10:07 PM, Thiago H. de Paula Figueiredo < >>> thiag...@gmail.com> wrote: >>> >>>> On Sat, 26 Feb 2011 09:52:40 -0300, dwi ardi irawan < >>>> penyihirke...@gmail.com> wrote: >>>> >>>> As of Hibernate 3.6, JDK 1.4 support has been dropped and the Hibernate >>>>> Annotations have been merged back into Core. >>>>> Then why should I need hibernate annotations on my pom.xml ?? >>>>> >>>> >>>> You shouldn't. Have you checked if the Hibernate JAR was correctly >>>> downloaded and if you have two different Hibernate versions in the >>>> classpath? A corrupted or truncated JAR can cause strange problems. >>>> >>>> -- >>>> Thiago H. de Paula Figueiredo >>>> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, >>>> and instructor >>>> Owner, Ars Machina Tecnologia da Informação Ltda. >>>> http://www.arsmachina.com.br >>>> >>> >>> >>> >>> -- >>> http://dwiardiirawan.com >>> "cos everyone could be extraordinary...lighten up !" >>> >>> >> >> >> -- >> http://dwiardiirawan.com >> "cos everyone could be extraordinary...lighten up !" >> >> > > > -- > http://dwiardiirawan.com > "cos everyone could be extraordinary...lighten up !" > > -- http://dwiardiirawan.com "cos everyone could be extraordinary...lighten up !"
Re: Q: Tapestry 5.2.4 + Hibernate 3.6 ?
Yay. I got it works ! I forgot to mapped the beans entity on my hibernate configuration com.mysql.jdbc.Driver jdbc:mysql://localhost:3306/tapestryboard org.hibernate.dialect.MySQLDialect root update true true Thnx guys ^^, On Sat, Feb 26, 2011 at 11:29 PM, dwi ardi irawan wrote: > here is my source code > so it doesn't show an error like it did previously > but I have to you mvn jetty:run instead of using jetty launcher. > > but now, it show : "There is no data to display" > > could anyone help me? > > > On Sat, Feb 26, 2011 at 11:17 PM, dwi ardi irawan > wrote: > >> Yes, I've checked it. And it doesn't corrupt at all. >> I think the problem is in the jetty launcher, cos when use mvn jetty:run, >> it doesn't show any error >> Strange >> >> but now there is another problem, now, the page is show: >> "There is no data to display." >> >> my table has only 1 row. >> >> >> >> On Sat, Feb 26, 2011 at 10:07 PM, Thiago H. de Paula Figueiredo < >> thiag...@gmail.com> wrote: >> >>> On Sat, 26 Feb 2011 09:52:40 -0300, dwi ardi irawan < >>> penyihirke...@gmail.com> wrote: >>> >>> As of Hibernate 3.6, JDK 1.4 support has been dropped and the Hibernate >>>> Annotations have been merged back into Core. >>>> Then why should I need hibernate annotations on my pom.xml ?? >>>> >>> >>> You shouldn't. Have you checked if the Hibernate JAR was correctly >>> downloaded and if you have two different Hibernate versions in the >>> classpath? A corrupted or truncated JAR can cause strange problems. >>> >>> -- >>> Thiago H. de Paula Figueiredo >>> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, >>> and instructor >>> Owner, Ars Machina Tecnologia da Informação Ltda. >>> http://www.arsmachina.com.br >>> >> >> >> >> -- >> http://dwiardiirawan.com >> "cos everyone could be extraordinary...lighten up !" >> >> > > > -- > http://dwiardiirawan.com > "cos everyone could be extraordinary...lighten up !" > > -- http://dwiardiirawan.com "cos everyone could be extraordinary...lighten up !"
Re: Q: Tapestry 5.2.4 + Hibernate 3.6 ?
Yes, I've checked it. And it doesn't corrupt at all. I think the problem is in the jetty launcher, cos when use mvn jetty:run, it doesn't show any error Strange but now there is another problem, now, the page is show: "There is no data to display." my table has only 1 row. On Sat, Feb 26, 2011 at 10:07 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Sat, 26 Feb 2011 09:52:40 -0300, dwi ardi irawan < > penyihirke...@gmail.com> wrote: > > As of Hibernate 3.6, JDK 1.4 support has been dropped and the Hibernate >> Annotations have been merged back into Core. >> Then why should I need hibernate annotations on my pom.xml ?? >> > > You shouldn't. Have you checked if the Hibernate JAR was correctly > downloaded and if you have two different Hibernate versions in the > classpath? A corrupted or truncated JAR can cause strange problems. > > -- > Thiago H. de Paula Figueiredo > Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, > and instructor > Owner, Ars Machina Tecnologia da Informação Ltda. > http://www.arsmachina.com.br > -- http://dwiardiirawan.com "cos everyone could be extraordinary...lighten up !"
Re: Q: Tapestry 5.2.4 + Hibernate 3.6 ?
As of Hibernate 3.6, JDK 1.4 support has been dropped and the Hibernate Annotations have been merged back into Core. Then why should I need hibernate annotations on my pom.xml ?? On Sat, Feb 26, 2011 at 2:03 AM, Josh Canfield wrote: > > Could not initialize class > > org.hibernate.annotations.common.reflection.java.JavaReflectionManager > > It looks like you need to add a dependency to hibernate annotations. > > Josh > > On Fri, Feb 25, 2011 at 10:26 AM, dwi ardi irawan > wrote: > > I'm using Tapestry 5.2.4 and Hibernate 3.6 > > > > These are the steps in my Tapestry-Hibernate > > I just want to display an address table. > > > > But I got an error: > > Exception constructing service 'ValueEncoderSource': Error invoking > service > > builder method > > org.apache.tapestry5.services.TapestryModule.buildValueEncoderSource(Map, > > InvalidationEventHub) > > (at TapestryModule.java:2287) (for service 'ValueEncoderSource'): Error > > invoking service contribution method > > > org.apache.tapestry5.hibernate.HibernateModule.contributeValueEncoderSource(MappedConfiguration, > > > > boolean, HibernateSessionSource, Session, TypeCoercer, PropertyAccess, > > LoggerSource): Exception constructing service 'HibernateSessionSource': > > Error invoking service builder method > > > org.apache.tapestry5.hibernate.HibernateCoreModule.buildHibernateSessionSource(Logger, > > > > List, RegistryShutdownHub) (at HibernateCoreModule.java:123) (for service > > 'HibernateSessionSource'): > > Could not initialize class > > org.hibernate.annotations.common.reflection.java.JavaReflectionManager > > > > My questions are: > > 1. Did I miss something to configure > > 2. How did tapestry load hibernate.cfg.xml for the first time? > > 3. Most of the example out there is using tapestry 5.1 and Hibernate < > 3.6 > > version > > > > Could anyone help me, please > > > > *STEP BY STEP : > > > > **1. pom.xml* > > > > I added : > > > >org.apache.tapestry > >tapestry-hibernate > >${tapestry-release-version} > > > > > > > >org.hibernate > >hibernate-core > >3.6.0.Final > > > > > >net.sf.ehcache > >ehcache-core > >2.2.0 > > > > > >mysql > >mysql-connector-java > >5.1.15 > > > > > > *2. Address.java* > > > > import javax.persistence.Entity; > > import javax.persistence.GeneratedValue; > > import javax.persistence.GenerationType; > > import javax.persistence.Id; > > import javax.persistence.Table; > > > > import org.apache.tapestry5.beaneditor.NonVisual; > > import org.apache.tapestry5.beaneditor.Validate; > > > > @Entity > > @Table(name="hello") > > public class Address { > >@Id > >@GeneratedValue(strategy = GenerationType.IDENTITY) > >@NonVisual > > > >private Long id; > > > >@Validate("required") > >private String firstName; > > > >private String lastName; > >private String street1; > >private String street2; > > > >@Validate("required") > >private String city; > > > >private String state; > > > >@Validate("required,regexp") > >private String zip; > > > >private String email; > >private String phone; > > > >public Long getId() { > >return id; > >} > >public void setId(Long id) { > >this.id = id; > >} > > > >public String getFirstName() { > >return firstName; > >} > >public void setFirstName(String firstName) { > >this.firstName = firstName; > >} > > > >public String getLastName() { > >return lastName; > >} > >public void setLastName(String lastName) { > >this.lastName = lastName; > >} > > > >public String getStreet1() { > >return street1; > >} > >public void setStreet1(String street1) { > >this.street1 = street1; > >} > > > >public String getStreet2() { > >return street2; > >} > >public void setStreet2(String street2) { > >this.street2 = street2; > >} > > > >public String getCit
Q: Tapestry 5.2.4 + Hibernate 3.6 ?
I'm using Tapestry 5.2.4 and Hibernate 3.6 These are the steps in my Tapestry-Hibernate I just want to display an address table. But I got an error: Exception constructing service 'ValueEncoderSource': Error invoking service builder method org.apache.tapestry5.services.TapestryModule.buildValueEncoderSource(Map, InvalidationEventHub) (at TapestryModule.java:2287) (for service 'ValueEncoderSource'): Error invoking service contribution method org.apache.tapestry5.hibernate.HibernateModule.contributeValueEncoderSource(MappedConfiguration, boolean, HibernateSessionSource, Session, TypeCoercer, PropertyAccess, LoggerSource): Exception constructing service 'HibernateSessionSource': Error invoking service builder method org.apache.tapestry5.hibernate.HibernateCoreModule.buildHibernateSessionSource(Logger, List, RegistryShutdownHub) (at HibernateCoreModule.java:123) (for service 'HibernateSessionSource'): Could not initialize class org.hibernate.annotations.common.reflection.java.JavaReflectionManager My questions are: 1. Did I miss something to configure 2. How did tapestry load hibernate.cfg.xml for the first time? 3. Most of the example out there is using tapestry 5.1 and Hibernate < 3.6 version Could anyone help me, please *STEP BY STEP : **1. pom.xml* I added : org.apache.tapestry tapestry-hibernate ${tapestry-release-version} org.hibernate hibernate-core 3.6.0.Final net.sf.ehcache ehcache-core 2.2.0 mysql mysql-connector-java 5.1.15 *2. Address.java* import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; import org.apache.tapestry5.beaneditor.NonVisual; import org.apache.tapestry5.beaneditor.Validate; @Entity @Table(name="hello") public class Address { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @NonVisual private Long id; @Validate("required") private String firstName; private String lastName; private String street1; private String street2; @Validate("required") private String city; private String state; @Validate("required,regexp") private String zip; private String email; private String phone; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getFirstName() { return firstName; } public void setFirstName(String firstName) { this.firstName = firstName; } public String getLastName() { return lastName; } public void setLastName(String lastName) { this.lastName = lastName; } public String getStreet1() { return street1; } public void setStreet1(String street1) { this.street1 = street1; } public String getStreet2() { return street2; } public void setStreet2(String street2) { this.street2 = street2; } public String getCity() { return city; } public void setCity(String city) { this.city = city; } public String getState() { return state; } public void setState(String state) { this.state = state; } public String getZip() { return zip; } public void setZip(String zip) { this.zip = zip; } public String getEmail() { return email; } public void setEmail(String email) { this.email = email; } public String getPhone() { return phone; } public void setPhone(String phone) { this.phone = phone; } } *3. HibernateExamplePage.tml* *4. HibernateExamplePage.java* import org.apache.tapestry5.ioc.annotations.Inject; import org.hibernate.Session; import org.makeasoup.tapestryboard.beans.Address; public class HibernatePage { @Inject private Session session; public List getAddresses() { return session.createCriteria(Address.class).list(); } } *5. Hibernate.cfg.xml* http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd";> com.mysql.jdbc.Driver jdbc:mysql://localhost:3306/tapestryboard org.hibernate.dialect.MySQLDialect root update true true
Q: Palette using List of Bean ?
I'm trying to make a palette using list of bean. And I can't find solution how to do this. Especially with the encoder thing. can anyone help me? sorry for posting this long source code, just to make sure what is wrong with my code. Error: Render queue error in SetupRender[palette/UsingBean:palette]: org.makeasoup.tapestryboard.beans.Student cannot be cast to java.util.List *PaletteUsingBean.tml * *PaletteUsingBean.java* public class PaletteUsingBean { @Persist(PersistenceConstants.FLASH) @Property private Student student; @Property @Persist(PersistenceConstants.FLASH) private List selectedStudentList; private List studentList; public List getStudentList() { if(studentList==null){ studentList = new ArrayList(); studentList.add(new Student("Dwi Ardi Irawan", (new GregorianCalendar(8, Calendar.APRIL, 1984)).getTime(), "5106100506")); studentList.add(new Student("Tri Aditya Sasongko", (new GregorianCalendar(11, Calendar.NOVEMBER, 1988)).getTime(), "5106100507")); studentList.add(new Student("No Name", (new GregorianCalendar(1, Calendar.JANUARY, 2011)).getTime(), "5106100508")); } return studentList; } public SelectModel getStudentModel(){ return new StudentSelectionModel(getStudentList()); } public StudentValueEncoder getStudentEncoder(){ return new StudentValueEncoder(getStudentList()); } } *StudentSelectionModel.java* public class StudentSelectionModel implements SelectModel { private List studentList; public StudentSelectionModel(List studentList) { this.studentList = studentList; } public List getOptionGroups() { return getSelectModel().getOptionGroups(); } public List getOptions() { return getSelectModel().getOptions(); } public void visit(SelectModelVisitor visitor) { for (OptionGroupModel optionGroupModel : getSelectModel().getOptionGroups()) { visitor.beginOptionGroup(optionGroupModel); for (OptionModel optionModel : optionGroupModel.getOptions()) { visitor.option(optionModel); } visitor.endOptionGroup(optionGroupModel); } } public SelectModel getSelectModel(){ List optionModelList = new ArrayList(); for (Student student : studentList) { optionModelList.add(new OptionModelImpl(student.getName(), student)); } return new SelectModelImpl(new OptionGroupModelImpl(null, false, optionModelList)); } } *StudentValueEncoder.java* public class StudentValueEncoder implements ValueEncoder>{ private List studentList; public StudentValueEncoder(List studentList) { this.studentList = studentList; } public String toClient(List studentList) { return null; } public List toValue(String value) { List selectedStudentList = new ArrayList(); for(Student student : studentList) { if(student.getNrp().equals(value)) { selectedStudentList.add(student); } } return selectedStudentList; } }
Re: Q: Java Script Check All The CheckBox?
I agree this is my solution. thnx to josh canfield who give me the idea. Instead of using document.getElementsByTagName("INPUT") then check whether is checkbox or not, I prefer to use this method. the same idea as josh canfield but I try to get the form element as the root of iteration, not the input. it's to avoid if there is more than one form in one page. IHMO(cos I doesn't have enough experiance to make an opinion which one is better). what I mean with a simple solution is we try to do this in client side. and we don't have to use others component. function selectAllCheckboxes(select){ <!-- // var form = document.getElementById("newspaperForm"); var checkAll = document.getElementById("checkAllRemove"); if(checkAll.checked){ for (var i=0;i<form.length;i++) { if (form.elements[i].type == "checkbox") { form.elements[i].checked = true; } } }else{ for (var i=0;i<form.length;i++) { if (form.elements[i].type == "checkbox") { form.elements[i].checked = false; } } } // --> } Yahoo Google Check All Result : ${value} I am sorry, I am not very fluently in english. ^^, regards, dwi ardi irawan On Wed, Jan 19, 2011 at 12:16 PM, Taha Hafeez wrote: > Yes, this is an option as are others and these can be used AFAIK. The > thread > there shows a way to use it even if javascript is disabled > > regards > Taha > --
Q: Java Script Check All The CheckBox?
Okay, it might be old question, but I've searched through mailing list archive, but haven't found the solution yet. I have 2 checkbox. and I want to create a checkbox master(when I click this checkbox, all the checkbox will be checked). I can't use the common js algorithm here, cos I can't get the id of the checkbox. CheckBoxPage.tml this is my simple code: function checkAllDetail(){ } Yahoo Google Check All Result : ${value} CheckBoxPage.java public class CheckBoxPage { @Property private boolean subscribeYahoo; @Property private boolean subscribeGoogle; @Persist(PersistenceConstants.FLASH) @Property private String value; void onSuccessFromNewspaperForm(){ value = ""; if(subscribeYahoo){ value += "Yahoo "; } if(subscribeGoogle) { value += "Google "; } } } can anyone help me? thnx you dwi ardi irawan
Re: SUCCESSFULL deploy Tapestry5 on google appengine
wow, coolhow bout tapestry 5.1 ? any progress so far ? just curious... -- http://dwiardiirawan.blogspot.com "cos everyone could be extraordinary...lighten up !"
Re: Tapestry4e - New free eclipse plugin for Tapestry 5
yes me too, how to use this thing ??
Re: Q : Could not find a coercion from type java.lang.String to type java.util.Date
It works, Thnx you -- http://www.dwiardiirawan.com "cos everyone could be extraordinary...lighten up !"
Re: IF component in tapestry 5 ?
thnx u for the information^_^v
Re: Q : IF component in tapestry 5 ?
thnx u. it works now -- http://www.dwiardiirawan.com "cos everyone could be extraordinary...lighten up !"
Q : Could not find a coercion from type java.lang.String to type java.util.Date
hi, could anyone help me here's my code @Persist("flash") @Property private Date twawal, twakhir; . public Link getDailyChart(){ System.out.println(twawal); // OK System.out.println(twakhir); // OK return _resources.createEventLink("chart", new Object[]{"400","400", twawal, twakhir}); } public StreamResponse onChart(final int width, final int height, final Date _twawal, final Date _twakhir){ return new StreamResponse(){ public String getContentType(){ return "image/gif"; } public InputStream getStream() throws IOException { BufferedImage image = generateDailyChart().createBufferedImage(width, height); ByteArrayOutputStream byteArray = new ByteArrayOutputStream() ; ChartUtilities.writeBufferedImageAsPNG(byteArray, image) ; return new ByteArrayInputStream(byteArray.toByteArray()); } public void prepareResponse(Response response){} }; } i got an error said : "Could not find a coercion from type java.lang.String to type java.util.Date. Available coercions: Double --> Float, Float --> Double, Long --> Boolean, Long --> Byte, Long --> Double, Long --> Integer, Long --> Short, Number --> Long, Object --> Object[], Object --> String, Object --> java.util.List, Object[] --> java.util.List, String --> Boolean, String --> Double, String --> Long, String --> java.io.File, String --> java.math.BigDecimal, String --> java.math.BigInteger, String --> java.text.DateFormat" can anyone help me ? -- http://www.dwiardiirawan.com "cos everyone could be extraordinary...lighten up !"
Re: IF component in tapestry 5 ?
@Persist("flash") what does "flash" mean ??
Re: IF component in tapestry 5 ?
It Works.Thnx you -- http://www.dwiardiirawan.com "cos everyone could be extraordinary...lighten up !"
Q : IF component in tapestry 5 ?
guys, i'm so stress with "if" komponent. how to use it here's my code .tml === AAA BBB CCC = .java = @Persist private ChartType chartType; public ChartType getChartType() { return chartType; } @Property private String dailyChart, monthlyChart, yearlyChart; Object onSuccessFromChartForm(){ if(chartType==ChartType.DAILY){ dailyChart = "D"; monthlyChart = null; yearlyChart = null; }else if (chartType==ChartType.MONTHLY) { dailyChart = null; monthlyChart = "M"; yearlyChart = null; }else if (chartType==chartType.YEARLY) { dailyChart = null; monthlyChart = null; yearlyChart = "Y"; } if we look the code above, it should work but it doesn't when i choose "Daily" on select menu that means dailyChart property will become "D" and it should render this block and output "AAA" AAA is there something wrong wih my code or my perception of if component in tapestry 5 thnx u dwi ardi irawan - 'penyihirkecil' http://www.dwiardiirawan.com <http://dwiardiirawan.blogspot.com/>
Re: Q: deprecated for createActionLink method in ComponentResources ?
Thnx U On Wed, Mar 4, 2009 at 3:26 PM, Kristian Marinkovic < kristian.marinko...@porsche.co.at> wrote: > hi, > > _resource.createEventLink() is the replacement > > g, > kris > > > > dwi ardi irawan > 04.03.2009 08:43 > Bitte antworten an > "Tapestry users" > > > An > Tapestry users > Kopie > > Thema > Q: deprecated for createActionLink method in ComponentResources ? > > > > > > > Hi... > could anyone help me bout this deprecated method > is there any replacement for this method ?? > I tried it for my JFreeChart on TapestryIt Works > but i feel so uncomfortable using this deprecated method. > > please help me > > . > > @Inject >private ComponentResources _resources; > >@Inject >private TypeCoercer _coercer; > >public Link getChart3(){ >// deprecated method for createActionLink >return _resources.createActionLink("chart", false, new > Object[]{"200","200","aa","39","bb","12","cc","12","dd","4"}); >} > > . > > > > > thnx u > > -- > http://dwiardiirawan.com > "cos everyone could be extraordinary...lighten up !" > > -- http://dwiardiirawan.blogspot.com "cos everyone could be extraordinary...lighten up !"
Q: deprecated for createActionLink method in ComponentResources ?
Hi... could anyone help me bout this deprecated method is there any replacement for this method ?? I tried it for my JFreeChart on TapestryIt Works but i feel so uncomfortable using this deprecated method. please help me . @Inject private ComponentResources _resources; @Inject private TypeCoercer _coercer; public Link getChart3(){ // deprecated method for createActionLink return _resources.createActionLink("chart", false, new Object[]{"200","200","aa","39","bb","12","cc","12","dd","4"}); } . thnx u -- http://dwiardiirawan.com "cos everyone could be extraordinary...lighten up !"
Q: deprecated for createActionLink method in ComponentResources ?
Hi... could anyone help me bout this deprecated method is there any replacement for this method ?? I tried it for my JFreeChart on TapestryIt Works but i feel so uncomfortable using this deprecated method thnx u -- http://dwiardiirawan.com "cos everyone could be extraordinary...lighten up !"
Re: Re: q: passwordField ?
wowthnx you very much for the explanation...thnx u On Sat, Feb 28, 2009 at 12:04 AM, nille hammer wrote: > Hi dwi, > you do not need the password to be output to implement that feature. In > fact it is very insecure and uncommon to implement something like "Your > current passoword is: xxx" . This would mean you had to store the password > in clear text. This as Thiago already pointed out is insecure. > > Think of the password-Field as a one way street. Values submitted by the > user are used to update the values on the server side, but the content of > those values is not sent back to the client. To implement the password > change. Provide a form with two password fields and check wether the values > entered by the user do match. If they do, change password, if not send error > message. Right now I have no IDE at hand so cannot provide you with tested > example code. But I think something like the follwowingshould work > > tml-file: > > > > > > > > > Page class: > @Component > private Form myForm; // links to > > @Component > private PasswordField pw1; // links to t:id="pw1"> > > @Property > private String pw1; > > @Property > private String pw2; > > Object onValidateForm() { > if (this.pw1 == null || !this.pw1.equals(this.pw2)) { >myForm.recordError(pw1, "Passwords do not match"); > } > > > Kind Regards, nillehammer > > -- > http://www.winfonet.eu > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- http://dwiardiirawan.blogspot.com "cos everyone could be extraordinary...lighten up !"
Re: q: passwordField ?
sorry i just learn how to use it then how i can make a feature change passsword when PasswordField does not outputs its value ??? -- http://dwiardiirawan.blogspot.com "cos everyone could be extraordinary...lighten up !"
q: passwordField ?
i need a little help here... i have a passwordField here but it can't showed the value of my database. it showed empty but when i changed it into TextField, it showed the database value... : can someone help me ? -- http://dwiardiirawan.blogspot.com "cos everyone could be extraordinary...lighten up !"
Re: Q : Select using value encoder ?
i just want to try this...but it doesn't wor for me. could anybody help me On Sun, Dec 21, 2008 at 4:07 AM, Olle Hallin wrote: > Why not use an enum and BeanEditForm? > Olle > > >
Q : Select using value encoder ?
hi alli got a little problem here i want to make this into a select component : if the label is "user" then the value would be : 0(Integer) if the label is "administrator" then the value would be : 1(Integer) i did that in this way : *User.java* private String username; private String password private Integer status; .. *userForm.tml* : *userForm.java* .. @Property private User user; .. public List getStatusList() { if(statusList==null){ statusList = new ArrayList(); statusList.add("user"); statusList.add("administrator"); } return statusList; } public StatusSelectionModel getStatusSelectionModel() { return new StatusSelectionModel(getStatusList()); } public ValueEncoder getStatusValueEncoder(){ return new StringValueEncoder(); } *StatusSelectionModel.java* public class StatusSelectionModel implements SelectModel{ private List statusList; public StatusSelectionModel(List formationList){ this.statusList = formationList; } public List getOptionGroups() { return getSelectModel().getOptionGroups(); } public List getOptions() { return getSelectModel().getOptions(); } public void visit(SelectModelVisitor visitor) { getSelectModel().visit(visitor); } public SelectModel getSelectModel() { List optionModelList = new ArrayList(); for(String status: statusList) { if(status.equals("user")){ optionModelList.add(new OptionModelImpl(status,new Integer(0))); }else if (status.equals("administrator")) { optionModelList.add(new OptionModelImpl(status,new Integer(1))); } } return new SelectModelImpl(null, optionModelList); } } *StringValueEncoder .java* public class StringValueEncoder implements ValueEncoder { public String toClient(Integer value) { return value.toString(); } public Integer toValue(String value) { // TODO Auto-generated method stub return Integer.parseInt(value); } } but i got following error when i tried to submit it : *Failure writing parameter 'value' of component UserFormPage:statusselect: Coercion of user to type java.lang.Integer (via String --> Long, Long --> Integer) failed: For input string: "user"* * * could somebody help me thnx u very much -- http://dwiardiirawan.blogspot.com "cos everyone could be extraordinary...lighten up !"
Re: EmittingRSSFeeds Using Tapestry 5.0.16
could you give a simple example how to use StreamResponse or any lint that provide that information... thnx u very much On 11/24/08, Thiago H. de Paula Figueiredo <[EMAIL PROTECTED]> wrote: > Em Sun, 23 Nov 2008 16:30:45 -0300, dwi ardi irawan > <[EMAIL PROTECTED]> escreveu: > >> have somebody tried integrating rome using tapestry 5? >> i read on wiki : >> http://wiki.apache.org/tapestry/EmittingRSSFeeds >> but when i tried it. it broken cos lot's of deprecated method and >> annotation >> like : >> >> @InjectObject( "infrastructure:markupWriterSource" ) >> @Parameter( defaultValue = "literal:rss_2.0" ) > > That wiki pages is about Tapestry 4.x, not Tapestry 5, and they are > implemented in very different ways. > A way to do a Rome integration (or any other integration with packages > that generate output) is to create a page that returns a StreamResponse on > it onActivate method. > (http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry5/StreamResponse.html). > > -- > Thiago H. de Paula Figueiredo > Independent Java consultant, developer, and instructor > http://www.arsmachina.com.br/thiago > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- http://dwiardiirawan.blogspot.com "cos everyone could be extraordinary...lighten up !" - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
EmittingRSSFeeds Using Tapestry 5.0.16
have somebody tried integrating rome using tapestry 5? i read on wiki : http://wiki.apache.org/tapestry/EmittingRSSFeeds but when i tried it. it broken cos lot's of deprecated method and annotation like : @InjectObject( "infrastructure:markupWriterSource" ) @Parameter( defaultValue = "literal:rss_2.0" ) etc could somebody help me ? thnx u very much... -- http://dwiardiirawan.blogspot.com "cos everyone could be extraordinary...lighten up !"
Q : paging using loop component ?
does anybody could give me information how to do paging using loop component in tapestry 5 thnx u very much ^_^v -- http://dwiardiirawan.blogspot.com "cos everyone could be extraordinary...lighten up !"
Re: Q : Where is 'model' property form Grid Component ?
thnx for the information i got it now... i read the src code from jumpstart and it really help me thnx u very much On Thu, Nov 20, 2008 at 9:47 PM, Hugo Palma <[EMAIL PROTECTED]> wrote: > You should now use either the createDisplayModel or createEditModel method. > Both are documented so you should easily figure out which one applies to > your use case. > > You'll need to pass an additional Messages parameter that you can (if > that's > the case) for example get from ComponentResources.getMessages() > > On Thu, Nov 20, 2008 at 2:39 PM, dwi ardi irawan <[EMAIL PROTECTED] > >wrote: > -- http://dwiardiirawan.blogspot.com "cos everyone could be extraordinary...lighten up !"
Q : Where is 'model' property form Grid Component ?
hi guys..it's been so long i didn't work using tapestry 5 but i have difficulty to update my application using new tapestry 5.0.16 when i used the old tapestry version (i forgot the version) it supported something like this : *.tml* *.java [EMAIL PROTECTED] private BeanModel playerModel; @Inject private BeanModelSource beanModelSource; @Inject private ComponentResources resources;* * .. void pageLoaded(){ playerModel = beanModelSource.create(Player.class, false, resources); } . but when i checked...the latest version of tapestry which is tapestry 5.0.16 the method .create() for BeanModelSource is now deprecated. does anybody know how how to fix it and how can i implement it the same way in tapestry 5.0.16 thnx u very much -- http://dwiardiirawan.blogspot.com "cos everyone could be extraordinary...lighten up !"
Re: Design Templete Changed When Transfor Into Tapestry WebApp
here is the screenshot : http://mobbuzzworld.blogspot.com/2008/11/ie-vs-firefox.html i don't understand i always found difficulty to make my templete looks fine using tapestry 5 in firefox ? does anybody has the same problem with me??
Re: Design Templete Changed When Transfor Into Tapestry WebApp
i use tapestry 5.0.16 On Sun, Nov 16, 2008 at 11:34 PM, dwi ardi irawan <[EMAIL PROTECTED]>wrote: > here's what tapestry did to my templete... > > > On Sun, Nov 16, 2008 at 11:07 PM, Andy Pahne <[EMAIL PROTECTED]>wrote: > >> >> >> please send the contents of one of your templates and how it renders in >> the browser as plain text message. >> >> >> >> dwi ardi irawan wrote: >> >>> Hi guys, i really need your help >>> why my templete looks awful when i use firefoxbut it's looks fine in >>> IE >>> >>> it looks fine when it still *.html. but it changed after i make it into >>> tapestry.. >>> >>> >>> >>> -- >>> http://dwiardiirawan.blogspot.com >>> "cos everyone could be extraordinary...lighten up !" >>> >>> >>> >>> - >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > -- > http://dwiardiirawan.blogspot.com > "cos everyone could be extraordinary...lighten up !" > > -- http://dwiardiirawan.blogspot.com "cos everyone could be extraordinary...lighten up !"
Re: Design Templete Changed When Transfor Into Tapestry WebApp
here's what tapestry did to my templete... On Sun, Nov 16, 2008 at 11:07 PM, Andy Pahne <[EMAIL PROTECTED]>wrote: > > > please send the contents of one of your templates and how it renders in the > browser as plain text message. > > > > dwi ardi irawan wrote: > >> Hi guys, i really need your help >> why my templete looks awful when i use firefoxbut it's looks fine in >> IE >> >> it looks fine when it still *.html. but it changed after i make it into >> tapestry.. >> >> >> >> -- >> http://dwiardiirawan.blogspot.com >> "cos everyone could be extraordinary...lighten up !" >> >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- http://dwiardiirawan.blogspot.com "cos everyone could be extraordinary...lighten up !" - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
My First Tapestry 5 Project (DreamteamTM)
actually this is my lecture final project, but i would like to share with you guys, i knowit's far away from stable. but it might help for newbie i use : tapestry 5.0.8-SNAPSHOT (01/19/2008) iBatis 2.3.0 Dojo 1.0.2 Spring 2.5 here's the blog : http://tapestryboard.blogspot.com/ -- http://dwiardiirawan.blogspot.com "cos everyone could be extraordinary...lighten up !"
could Grid component receive parameter ?
hi i have a loop and each loop makes different output what i want to do is to create a table depend on the loop output so if there is 3 iterate from the loop it will be 3 grid table which is different each other could anyone help me ?? i could do that on jsp by passing parameter. how bout tapestry...could grid component receive a parameter -- http://dwiardiirawan.blogspot.com "cos everyone could be extraordinary...lighten up !" - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
T5 : pop up windows and refesh parent
hi..i've got another problem here i try shing man component : PageLinkPopup (from tassel) and tried this : [PlayerGrid.tml] Search code above is display the search page... in the seach page pop up, when i enter the keywords and submit it, i called onclick=" opener.location.reload(true);" in the submit button. the data in the PlayerGrid.tml changed only if i push the submit button twice here's the code in the PlayerSearch.java void onSuccessFromSearchPlayerForm(){ List playerList = getPlayerDao().queryForList("\"FIRST_NAME\"= '"+ getSearchFirstName()+"' ",""); playerGrid.setPlayerList(playerList); } does anybody know what is going on with my code or tapestry treat onClick differently ? -- http://dwiardiirawan.blogspot.com "cos everyone could be extraordinary...lighten up !"
Re: [T5] - using textfield compoents without validate attribute cause exception.
well, i really have no idea bout that maybe i missed some points could anyone help us clear this problem ? On Jan 2, 2008 5:13 PM, Mohammad Shamsi <[EMAIL PROTECTED]> wrote: > Hi DWI > > i did it, but i still have this problem. > > this is a server side exception, are you sure this is related to Java > Script > and Client Browser ? > > > On Jan 2, 2008 6:49 AM, dwi ardi irawan <[EMAIL PROTECTED]> wrote: > > > i got this err too when i changed to tapestry 5.0.7 > > but as howard said : > > "Try clearing your browser cache, you may have the old tapestry.js > > stuck in there." > > > > it works... > > it fixed everything... > > > > On Jan 1, 2008 3:14 PM, Mohammad Shamsi <[EMAIL PROTECTED]> wrote: > > > > > Hi All, > > > > > > i have a simple text field in my page like this : > > > > > > > > t:validate="required" class="required"/> > > > > > > when i remove the t:validate="required" from this components i got > > > exception. > > > > > > i use 5.0.7 version. in 5.0.6 i had no problem in this case , i > guess > > > so. > > > > > > exception log is : > > > > > > java.lang.NoClassDefFoundError org/apache/tapestry/beaneditor/Validate > > > > > > > Stack trace > > > > > > > >- > > > > > > > > > > org.apache.tapestry.internal.beaneditor.ValidateAnnotationConstraintGenerator.buildConstraints > > > >(ValidateAnnotationConstraintGenerator.java:32) > > > >- > > > > > > > > > > org.apache.tapestry.internal.services.ValidationConstraintGeneratorImpl.buildConstraints > > > >(ValidationConstraintGeneratorImpl.java:42) > > > >- > > > > > > > > > > org.apache.tapestry.internal.services.FieldValidatorDefaultSourceImpl.createDefaultValidator > > > >(FieldValidatorDefaultSourceImpl.java:49) > > > >- > > org.apache.tapestry.corelib.base.AbstractTextField.defaultValidate > > > >(AbstractTextField.java:120) > > > >- > > > > > > > > org.apache.tapestry.corelib.base.AbstractTextField.containingPageDidLoad > > > >(AbstractTextField.java) > > > >- > > > > > > org.apache.tapestry.internal.structure.ComponentPageElementImpl$3.run > > > >(ComponentPageElementImpl.java:78) > > > >- > > > > > > > org.apache.tapestry.internal.structure.ComponentPageElementImpl.invoke > > > >(ComponentPageElementImpl.java:897) > > > >- > > > > > > > > > > org.apache.tapestry.internal.structure.ComponentPageElementImpl.containingPageDidLoad > > > >(ComponentPageElementImpl.java:745) > > > >- org.apache.tapestry.internal.structure.PageImpl.loaded( > > > >PageImpl.java:138) > > > >- > > org.apache.tapestry.internal.services.PageLoaderProcessor.loadPage > > > >(PageLoaderProcessor.java:347) > > > >- org.apache.tapestry.internal.services.PageLoaderImpl.loadPage( > > > >PageLoaderImpl.java:60) > > > >- org.apache.tapestry.internal.services.PagePoolImpl.checkout( > > > >PagePoolImpl.java:69) > > > > > > > > > > > > > > > -- > > > sincerely yours > > > M. H. Shamsi > > > > > > > > > > > -- > > http://dwiardiirawan.blogspot.com > > "cos everyone could be extraordinary...lighten up !" > > > > > > -- > sincerely yours > M. H. Shamsi > -- http://dwiardiirawan.blogspot.com "cos everyone could be extraordinary...lighten up !"
Re: [T5] - using textfield compoents without validate attribute cause exception.
i got this err too when i changed to tapestry 5.0.7 but as howard said : "Try clearing your browser cache, you may have the old tapestry.js stuck in there." it works... it fixed everything... On Jan 1, 2008 3:14 PM, Mohammad Shamsi <[EMAIL PROTECTED]> wrote: > Hi All, > > i have a simple text field in my page like this : > > t:validate="required" class="required"/> > > when i remove the t:validate="required" from this components i got > exception. > > i use 5.0.7 version. in 5.0.6 i had no problem in this case , i guess > so. > > exception log is : > > java.lang.NoClassDefFoundError org/apache/tapestry/beaneditor/Validate > > > Stack trace > > > >- > > > org.apache.tapestry.internal.beaneditor.ValidateAnnotationConstraintGenerator.buildConstraints > >(ValidateAnnotationConstraintGenerator.java:32) > >- > > > org.apache.tapestry.internal.services.ValidationConstraintGeneratorImpl.buildConstraints > >(ValidationConstraintGeneratorImpl.java:42) > >- > > > org.apache.tapestry.internal.services.FieldValidatorDefaultSourceImpl.createDefaultValidator > >(FieldValidatorDefaultSourceImpl.java:49) > >- org.apache.tapestry.corelib.base.AbstractTextField.defaultValidate > >(AbstractTextField.java:120) > >- > > > org.apache.tapestry.corelib.base.AbstractTextField.containingPageDidLoad > >(AbstractTextField.java) > >- > >org.apache.tapestry.internal.structure.ComponentPageElementImpl$3.run > >(ComponentPageElementImpl.java:78) > >- > > > org.apache.tapestry.internal.structure.ComponentPageElementImpl.invoke > >(ComponentPageElementImpl.java:897) > >- > > > org.apache.tapestry.internal.structure.ComponentPageElementImpl.containingPageDidLoad > >(ComponentPageElementImpl.java:745) > >- org.apache.tapestry.internal.structure.PageImpl.loaded( > >PageImpl.java:138) > >- org.apache.tapestry.internal.services.PageLoaderProcessor.loadPage > >(PageLoaderProcessor.java:347) > >- org.apache.tapestry.internal.services.PageLoaderImpl.loadPage( > >PageLoaderImpl.java:60) > >- org.apache.tapestry.internal.services.PagePoolImpl.checkout( > >PagePoolImpl.java:69) > > > > > > > -- > sincerely yours > M. H. Shamsi > -- http://dwiardiirawan.blogspot.com "cos everyone could be extraordinary...lighten up !"
Re: [T5] - is there any example for Grid usage ?
try : http://wiki.apache.org/tapestry/Tapestry5CheckOutTheSourceCode it was really help me On Jan 1, 2008 3:01 PM, Mohammad Shamsi <[EMAIL PROTECTED]> wrote: > Hi all, > > i want to use gird and paging components in my app. but i can't find any > useful sample. > > any resource or sample ? > > > -- > sincerely yours > M. H. Shamsi > -- http://dwiardiirawan.blogspot.com "cos everyone could be extraordinary...lighten up !"
T5 : pop up windows and refesh parent
hi..i've got another problem here i try shing man component : PageLinkPopup (from tassel) and tried this : [PlayerGrid.tml] Search code above is display the search page... in the seach page pop up, when i enter the keywords and submit it, i called onclick=" opener.location.reload(true);" in the submit button. the data in the PlayerGrid.tml changed only if i push the submit button twice here's the code in the PlayerSearch.java void onSuccessFromSearchPlayerForm(){ List playerList = getPlayerDao().queryForList("\"FIRST_NAME\"= '"+ getSearchFirstName()+"' ",""); playerGrid.setPlayerList(playerList); } does anybody know what is going on with my code or tapestry treat onClick differently ? -- http://dwiardiirawan.blogspot.com "cos everyone could be extraordinary...lighten up !"
Re: T5: event onChange for select component
it works but in the Object onSuccessFromPlayerForm() method. so it will mess the delete process from checkbox any idea ? i'm stuck with it ^_^ -- PlayerGrid.tml New Delete - PlayerGrid.java public class PlayerGrid extends SecureBasePage{ @Inject private IPlayerDao playerDao; private List playerList; private Player player; @Retain private BeanModel playerModel; @Inject private BeanModelSource beanModelSource; @Inject private ComponentResources resources; @Persist("flash") private String searchField; private String keyword; private boolean delete; private List deletedList; public Player getPlayer() { return player; } public void setPlayer(Player player) { this.player = player; } public IPlayerDao getPlayerDao() { return playerDao; } public String getSearchField() { return searchField; } public void setSearchField(String searchField) { this.searchField = searchField; } public String getKeyword() { return keyword; } public void setKeyword(String keyword) { this.keyword = keyword; } public boolean isDelete() { return delete; } public void setDelete(boolean delete) { if(delete){ getDeletedList().add(getPlayer().getIdPlayer()); } this.delete = delete; } public List getDeletedList() { if(deletedList == null){ deletedList = new ArrayList(); } return deletedList; } public List getPlayerList() { if(playerList == null){ playerList = new ArrayList(); playerList = getPlayerDao().queryForList("", ""); } return playerList; } public void setPlayerList(List playerList) { this.playerList = playerList; } void pageLoaded(){ playerModel = beanModelSource.create(Player.class, false, resources); playerModel.add("actions", null).label("Edit"); } Object onSuccessFromPlayerForm(){ for(String element : getDeletedList()){ setPlayer((Player) getPlayerDao().findByPrimaryKey(element)); getPlayerDao().delete(getPlayer()); } return PlayerGrid.class; } void onSelectedFromSearchSubmit() { System.out.println(getKeyword()); System.out.println("aaa" +getSearchField()); } public Be
Re: T5.0.7 Validation error
oops...already fixed. delete the cookies like howard said. On Dec 29, 2007 1:30 PM, dwi ardi irawan <[EMAIL PROTECTED]> wrote: > I got this error when i updated my app into t5.0.7 > java.lang.NoClassDefFoundError org/apache/tapestry/beaneditor/Validate > > doesy anybody know how to fix it ? > > > On Dec 29, 2007 5:23 AM, Howard Lewis Ship < [EMAIL PROTECTED]> wrote: > > > On Dec 28, 2007 1:44 PM, Joel Wiegman < [EMAIL PROTECTED]> wrote: > > > Ouch... That change botches up my current application pretty > > thoroughly. > > > > > > I don't think the event needs to be re-named... but consider the > > > following situation: > > > > > > If a form is in a layout component that other pages use via the > > > @Component annotation (say because most of the forms look very similar > > > and they want to re-use the presentation and validation logic), they > > > have no way of validating their forms in the pages, because they no > > > longer have access to the validate event from the form. > > > > You can do onValidateFromLayout() ... that is, if Form is inside > > Layout, then the event will bubble up from Layout to your page, and > > will appear to originate with Layout. > > > > Alternately, the Layout component could capture the Form's validate > > event and trigger a new event with a name of your choice: > > > > boolean onValidateFromForm() > > { > > _componentResources.trigger("layoutvalidate", null, null); > > } > > > > > > > > I tried using the onValidateFromIndividualField() technique... the > > > behavior of that seemed inconsistent (had to submit the form twice to > > > get the event to fire???). > > > > Huh? > > > > Are you sure your client-side validation wasn't preventing the form > > submission? > > > > > > How does one log these events to see which events are firing? > > > > That isn't really logged right now. > > > > > > > > Looks like I'll have to start validation over from ground zero if I > > want > > > to upgrade to 5.0.7... > > > > > > Perhaps the validation doc page could be updated with advice on proper > > > validation techniques? > > > > > > > > > -Original Message- > > > From: Howard Lewis Ship [mailto: [EMAIL PROTECTED] > > > > > > Sent: Friday, December 28, 2007 3:25 PM > > > To: Tapestry users > > > Subject: Re: T5.0.7 Validation error > > > > > > Tapestry 5.0.7 adds a new way of validating input from the client, a > > > validate event that is emitted from individual components and is > > > distinct from the validate event from the form. The event handler > > method > > > you already had, that was intended for cross-form validation after > > > values are in place, is being executed too early, for each field. > > > Sorry, unexpected consequences. Perhaps the form's event should be > > > renamed from "validate" to "formValidate"? > > > > > > Change your method name from onValidate() to onValidateFromForm() > > > (adjusting for your form's id). > > > > > > On Dec 28, 2007 12:02 PM, Joel Wiegman < [EMAIL PROTECTED]> > > wrote: > > > > There appears to be a bug with 5.0.7 in that any custom validation > > > > method ( onValidate(), etc. ) gets called before the HTTP values get > > > > bound to the Tapestry component. Can anyone else confirm this? > > > > > > > > -Original Message- > > > > From: Joel Wiegman [mailto:[EMAIL PROTECTED] > > > > Sent: Friday, December 28, 2007 2:40 PM > > > > To: Tapestry users > > > > > > > > Subject: RE: T5.0.7 Validation error > > > > > > > > I'm trying to upgrade to 5.0.7 and can't get screens (that validated > > > > just fine with 5.0.6) to validate either. > > > > > > > > Will re-post once I find out more. > > > > > > > > -Original Message- > > > > From: Howard Lewis Ship [mailto:[EMAIL PROTECTED] > > > > Sent: Friday, December 28, 2007 2:05 PM > > > > To: Tapestry users > > > > Subject: Re: T5.0.7 Validation error > > > > > > > > Try clearing your browser cache, you may have the old tapestry.js > > > > stuck in there. > > > > > > > > On Dec 28, 2
Re: T5.0.7 Validation error
I got this error when i updated my app into t5.0.7 java.lang.NoClassDefFoundError org/apache/tapestry/beaneditor/Validate doesy anybody know how to fix it ? On Dec 29, 2007 5:23 AM, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > On Dec 28, 2007 1:44 PM, Joel Wiegman <[EMAIL PROTECTED]> wrote: > > Ouch... That change botches up my current application pretty thoroughly. > > > > I don't think the event needs to be re-named... but consider the > > following situation: > > > > If a form is in a layout component that other pages use via the > > @Component annotation (say because most of the forms look very similar > > and they want to re-use the presentation and validation logic), they > > have no way of validating their forms in the pages, because they no > > longer have access to the validate event from the form. > > You can do onValidateFromLayout() ... that is, if Form is inside > Layout, then the event will bubble up from Layout to your page, and > will appear to originate with Layout. > > Alternately, the Layout component could capture the Form's validate > event and trigger a new event with a name of your choice: > > boolean onValidateFromForm() > { > _componentResources.trigger("layoutvalidate", null, null); > } > > > > > I tried using the onValidateFromIndividualField() technique... the > > behavior of that seemed inconsistent (had to submit the form twice to > > get the event to fire???). > > Huh? > > Are you sure your client-side validation wasn't preventing the form > submission? > > > > How does one log these events to see which events are firing? > > That isn't really logged right now. > > > > > Looks like I'll have to start validation over from ground zero if I want > > to upgrade to 5.0.7... > > > > Perhaps the validation doc page could be updated with advice on proper > > validation techniques? > > > > > > -Original Message- > > From: Howard Lewis Ship [mailto:[EMAIL PROTECTED] > > > > Sent: Friday, December 28, 2007 3:25 PM > > To: Tapestry users > > Subject: Re: T5.0.7 Validation error > > > > Tapestry 5.0.7 adds a new way of validating input from the client, a > > validate event that is emitted from individual components and is > > distinct from the validate event from the form. The event handler method > > you already had, that was intended for cross-form validation after > > values are in place, is being executed too early, for each field. > > Sorry, unexpected consequences. Perhaps the form's event should be > > renamed from "validate" to "formValidate"? > > > > Change your method name from onValidate() to onValidateFromForm() > > (adjusting for your form's id). > > > > On Dec 28, 2007 12:02 PM, Joel Wiegman <[EMAIL PROTECTED]> wrote: > > > There appears to be a bug with 5.0.7 in that any custom validation > > > method ( onValidate(), etc. ) gets called before the HTTP values get > > > bound to the Tapestry component. Can anyone else confirm this? > > > > > > -Original Message- > > > From: Joel Wiegman [mailto:[EMAIL PROTECTED] > > > Sent: Friday, December 28, 2007 2:40 PM > > > To: Tapestry users > > > > > > Subject: RE: T5.0.7 Validation error > > > > > > I'm trying to upgrade to 5.0.7 and can't get screens (that validated > > > just fine with 5.0.6) to validate either. > > > > > > Will re-post once I find out more. > > > > > > -Original Message- > > > From: Howard Lewis Ship [mailto:[EMAIL PROTECTED] > > > Sent: Friday, December 28, 2007 2:05 PM > > > To: Tapestry users > > > Subject: Re: T5.0.7 Validation error > > > > > > Try clearing your browser cache, you may have the old tapestry.js > > > stuck in there. > > > > > > On Dec 28, 2007 10:29 AM, Marcelo Lotif <[EMAIL PROTECTED]> wrote: > > > > When i switch to the 5.0.7 version, the validations of my > > > > BeanEditForms doesn't work properly... > > > > I have a BEF to add a user to the database. When i click on the > > > > submit > > > > > > > button, it must validate the fields and go to another page to show > > > > all > > > > > > > the users on the database. If there are errors on the validation, it > > > > > > must stay at the same page and show the errors to the user (as > > > > expected). When i switch to 5.0.7, even if i get some errors, the > > > > page > > > > > > > goes to the another one and the it ends up to add the user to the > > > > database with the errors. The funny thing is when i come back to the > > > > > > page, the errors are there... If i switch back to 5.0.6, everything > > > works fine again. > > > > > > > > Am i missing something or this is really an error? > > > > > > > > -- > > > > Atenciosamente, > > > > Marcelo Lotif > > > > > > > > > > > > > > > > -- > > > Howard M. Lewis Ship > > > > > > Creator Apache Tapestry and Apache HiveMind > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > >
Re: T5 : select component in a form didn't show the selected value [EDIT MODE]
and also overide the equals method : public boolean equals(Object object) { if (!(object instanceof Club)) { return false; } Club obj = (Club) object; return new EqualsBuilder() .append(this.idClub, obj.idClub) .append(this.clubName, obj.clubName) .isEquals(); } changed the encoder : package edu.its.dreamteam.web.util; import java.util.List; import org.apache.tapestry.ValueEncoder; import edu.its.dreamteam.daf.beans.Club; public class ClubValueEncoder implements ValueEncoder { private List clubList; public ClubValueEncoder(List clubList) { this.clubList = clubList; } public String toClient(Club club) { return club.getIdClub(); } public Club toValue(String value) { for(Club club : clubList){ if(club.getIdClub().equals(value)){ return club; } } return null; } } On Dec 21, 2007 10:04 PM, dwi ardi irawan <[EMAIL PROTECTED]> wrote: > hi it works i just changed like this : > > > > > > > cos in the player object contains club object (i'm using iBatis+Spring for > ORM) so what i should do it's to call Player.club not Player.idClub or > Player.clubName(Club Properties). > > Thnx guys > > > On Dec 21, 2007 9:52 PM, dwi ardi irawan <[EMAIL PROTECTED] > wrote: > > > ir works with the that one, but i'm still curious bout how implemented > > it inside aq form... > > Hmmm > > I already override the equals method but still didn't work > > > > > > On Dec 21, 2007 4:30 AM, Sylwek < [EMAIL PROTECTED]> > > wrote: > > > > > > > > Hi, > > > will it be possible to use in this case BeanEditForm with > > > component > > > Select ? > > > > > > Something like this: > > > > > > > > > > > > > > > > > encoder="clubValueEncoder"/> > > > > > > > > > > > > > > > Sylwek > > > -- > > > View this message in context: > > > http://www.nabble.com/T5-%3A-select-component-in-a-form-didn%27t-show-the-selected-value--EDIT-MODE--tp14414479p14445453.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] > > > > > > > > > > > > -- > > http://dwiardiirawan.blogspot.com > > "cos everyone could be extraordinary...lighten up !" > > > > > > -- > http://dwiardiirawan.blogspot.com > "cos everyone could be extraordinary...lighten up !" > -- http://dwiardiirawan.blogspot.com "cos everyone could be extraordinary...lighten up !"
Re: T5 : select component in a form didn't show the selected value [EDIT MODE]
hi it works i just changed like this : cos in the player object contains club object (i'm using iBatis+Spring for ORM) so what i should do it's to call Player.club not Player.idClub or Player.clubName(Club Properties). Thnx guys On Dec 21, 2007 9:52 PM, dwi ardi irawan <[EMAIL PROTECTED]> wrote: > ir works with the that one, but i'm still curious bout how implemented it > inside aq form... > Hmmm > I already override the equals method but still didn't work > > > On Dec 21, 2007 4:30 AM, Sylwek < [EMAIL PROTECTED]> wrote: > > > > > Hi, > > will it be possible to use in this case BeanEditForm with component > > Select ? > > > > Something like this: > > > > > > > > > > > encoder="clubValueEncoder"/> > > > > > > > > > > Sylwek > > -- > > View this message in context: > > http://www.nabble.com/T5-%3A-select-component-in-a-form-didn%27t-show-the-selected-value--EDIT-MODE--tp14414479p14445453.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] > > > > > > > -- > http://dwiardiirawan.blogspot.com > "cos everyone could be extraordinary...lighten up !" > -- http://dwiardiirawan.blogspot.com "cos everyone could be extraordinary...lighten up !"
Re: T5 : select component in a form didn't show the selected value [EDIT MODE]
ir works with the that one, but i'm still curious bout how implemented it inside aq form... Hmmm I already override the equals method but still didn't work On Dec 21, 2007 4:30 AM, Sylwek <[EMAIL PROTECTED]> wrote: > > Hi, > will it be possible to use in this case BeanEditForm with component > Select ? > > Something like this: > > > > > encoder="clubValueEncoder"/> > > > > > Sylwek > -- > View this message in context: > http://www.nabble.com/T5-%3A-select-component-in-a-form-didn%27t-show-the-selected-value--EDIT-MODE--tp14414479p14445453.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] > > -- http://dwiardiirawan.blogspot.com "cos everyone could be extraordinary...lighten up !"
Re: A experimental JPA Module/Service
could you give a little bit explanation bout how to use it...? thnx u... dwi ardi irawan ~ http://dwiardiirawan.blogspot.com ~ Carlos Delfino Carvalho Pinheiro wrote: Hi all! I create one new Service for Tapestry, for use with JPA. The Service is like Tapestry-Hibernate, and I call Tapestry-JPA. For first release go to http://pdtec.dev.java.net/dist/tapestry-jpa-0.0.2.jar Thanks; No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.485 / Virus Database: 269.13.3/986 - Release Date: 9/3/2007 9:31 AM - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Integarting EJB 3 to Tapestry 4
i've been curious on EJB... and already search the archive in this mailing list one of that is the post from : http://www.nabble.com/Inject-EJB-3-into-Tapestry-4-page-tf2841494.html#a8468544 but i still don't get the idea. i change the code (becouse it gives me some err when i follow the intruction from the sender above) *hivemodule.xml* === interface="org.apache.hivemind.service.ObjectProvider"> value="infrastructure:applicationStateManager"/> *EJBObjectProvider.java* === package hivemindModule; import javax.naming.InitialContext; import javax.naming.NamingException; import org.apache.hivemind.Location; import org.apache.hivemind.internal.Module; import org.apache.hivemind.service.ObjectProvider; public class EJBObjectProvider implements ObjectProvider { InitialContext context; Object result; public Object provideObject(Module module, Class propertyType, String locator, Location location) { try { context = new InitialContext(); result = context.lookup(locator); } catch (NamingException e) { e.printStackTrace(); } return result; } } *Home.java * import org.apache.tapestry.annotations.InjectObject; import org.apache.tapestry.html.BasePage; import edu.guestbook.bean.MessageManagerBean; public abstract class Home extends BasePage { @InjectObject("ejb:MessageManagerBean") public abstract MessageManagerBean messageManagerBean(); .. } * === myQuestion :* how can i get my my EJB Bean Interface like i did it in JSP. try{ InitialContext ic = new InitialContext(); MessageLocal address = (MessageLocal)ic.lookup("AddressBean"); address.writeMessageHello(); }catch(NamingException e){ } thnx dwi ardi irawan
Q : Tapestry 5 and EJB 3
does anyone can give me a little example of using tapestry 5 and EJB 3 ? thnx u dwi ardi irawan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Q : Tapestry 5 and EJB 3
does anyone can give me a little example of using tapestry 5 and EJB 3 ? thnx u dwi ardi irawan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Q : Tapestry 5 and EJB 3
does anyone can give me a little example of using tapestry 5 and EJB 3 ? thnx u dwi ardi irawan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tapestry 5 and EJB 3 : sample code or tutorial
Hi all, does anyone have a sample tutorial or code (just simply code to introduce me to use EJB 3 in Tapestry) please PM me... thnx u dwi ardi irawan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
About Tapestry 5 ?
i've heard about tapestry 5 preview release, what i want to ask : is tapestry 5 ready to be used in production ? thnx. dwi ardi irawan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: playing movie (.mpeg) in tapestry app ?
hi3x...thnx for the answer... in my mind i thought there is a tapestry component... so we just put out movie in that component hi3x... sorry for bothering Daniel Jue wrote: AFAIK, this has nothing to do with Tapestry. It has to do with embedding the link to the video in plain old html. For instance, you could just use the HTML embed tags in a Tapestry Hello World program. Now if you want to store things in the WEB-INF directory, you might have to define the file as an asset. But for your project you can probably just leave the file in a non-protected directory (outside of WEB-INF) Find a website that does what you want, and look at the code via the view source on your browser. Or save the page and open it up in dreamweaver/eclipse. Not to sound arrogant, but this is a very easy thing to do. It's almost the same as embedding a picture in html, just uses different tags and some more parameters. Google is your friend! On 12/4/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: Isn't that partially the point of the "class" you are taking? ;) (I don't remember the specifics, I'd probably do a simple google search for an answer. ) On 12/4/06, Dwi Ardi Irawan <[EMAIL PROTECTED]> wrote: > could you give me a little example (code) ... if you don't mind > thnx very much > > Jesse Kuhnert wrote: > > I think you want to use the html "embed" object don't you? Been a long > > time since I played with anything like that but I think that's how > > it's done. > > > > On 12/4/06, Dwi Ardi Irawan <[EMAIL PROTECTED]> wrote: > >> not, downloading > >> but...i just want to play a movie (.mpeg file)...inside the browser ? > >> is there any such component like that in tapestry > >> just like playing wmp (windows media player) in the browser... > >> > >> CMIIW > >> > >> > >> > >> > >> Andrea Chiumenti wrote: > >> > do you mean downloading a mpg file ? > >> > > >> > On 12/4/06, Dwi Ardi Irawan <[EMAIL PROTECTED]> wrote: > >> >> > >> >> i have a campus project > >> >> does anybody knows how to play mpeg file in tapestry app? > >> >> > >> >> thnx > >> >> > >> >> - > >> >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> >> For additional commands, e-mail: [EMAIL PROTECTED] > >> >> > >> >> > >> > > >> > >> - > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: playing movie (.mpeg) in tapestry app ?
could you give me a little example (code) ... if you don't mind thnx very much Jesse Kuhnert wrote: I think you want to use the html "embed" object don't you? Been a long time since I played with anything like that but I think that's how it's done. On 12/4/06, Dwi Ardi Irawan <[EMAIL PROTECTED]> wrote: not, downloading but...i just want to play a movie (.mpeg file)...inside the browser ? is there any such component like that in tapestry just like playing wmp (windows media player) in the browser... CMIIW Andrea Chiumenti wrote: > do you mean downloading a mpg file ? > > On 12/4/06, Dwi Ardi Irawan <[EMAIL PROTECTED]> wrote: >> >> i have a campus project >> does anybody knows how to play mpeg file in tapestry app? >> >> thnx >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: playing movie (.mpeg) in tapestry app ?
not, downloading but...i just want to play a movie (.mpeg file)...inside the browser ? is there any such component like that in tapestry just like playing wmp (windows media player) in the browser... CMIIW Andrea Chiumenti wrote: do you mean downloading a mpg file ? On 12/4/06, Dwi Ardi Irawan <[EMAIL PROTECTED]> wrote: i have a campus project does anybody knows how to play mpeg file in tapestry app? thnx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
playing movie (.mpeg) in tapestry app ?
i have a campus project does anybody knows how to play mpeg file in tapestry app? thnx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Browse button problem
please, don't send an e-mail with the same content more than one ! just wait until somebody response your emaildon't overdo it's very annoying Peter Dawn wrote: guys, if i implement the browse button within my web app using, it generates the textfield and the browse button together. now my problem is that this breaks my current implementation in which i have a which i am using to read the input on form submit. so if i implement the browse button, how can i capture the input using still the textfield component. any help pls. thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TapIDEA future, post "Time to move on"
I think someone has started working on a module that integrates the Tapestry web framework in NetBeans http://www.netbeans.info/newsletter/story.php?id=719 D&J Gredler wrote: If I remember correctly, one of the benefits of the move to maven2 was supposed to be the creation of Tapestry sub-projects with their own commiters, where both contributors and components could be nurtured. What about a tapestry-ide subproject that Hugo and some other intrepid volunteers could get commit rights to, without getting commit rights to core/contrib/etc? This sub-project could contain core IDE support, with perhaps subprojects (tapestry-idea, tapestry-eclipse or whatever) for thin adaptors to IDEA, Eclipse, etc. My 2¢ is that Tapestry would benefit from official IDE tooling with a team behind it (rather than one-person efforts), and this certainly won't happen anytime soon if left to the current core developers (though Jesse does seem to possess superhuman time management abilities). Just an idea... feel free to shoot it down. Daniel On 8/28/06, Hugo Palma <[EMAIL PROTECTED]> wrote: Since Geoff decided to leave the Spindle project i've been thinking about the future of TapIDEA. As many of you know, TapIDEA is built on top of Spindle, which means "No Spindle" -> "No TapIDEA". There are several scenarios that can be put into account in the current situation, and after a long consideration here are my conclusions. Someone else picks up Spindle where Geoff left off: I honestly don't think this is going to happen. AFAIK Spindle was a one man project so no one else has the know how to quickly get into gear with the project. Some might think that that person could be me, and indeed i've become familiar with Spindle internals during the development of TapIDEA. But, there's the free time factor. I just wouldn't be able to find the time to do it. Still, if this scenario were to be become true, TapIDEA would live on. Spindle for T4 dies, a new project is born: Ok, so no Spindle and no TapIDEA for T4. What about T5 ? As Geoff as pointed out, T5 support is going to require an almost complete rewrite of Spindle. So, in this scenario someone would implement Spindle(or create a whole new project) for IDE support for T5, and TapIDEA would follow. I find that this is the scenario with the most chances of becoming reality. Spindle and TapIDEA die for good: Well, there's always the possibility that no one will volunteer to continue our efforts of bringing IDE support to Tapestry. In this scenario both Spindle and TapIDEA end their lives now. The TapIDEA project will be "hibernating" until one of these(or any other) scenarios become reality. I guess now it's up to the community to present their ideas about this. I hope that, together, we can give our contribution to making Tapestry IDE support a reality. Cheers, Hugo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How To Set Selected Option For PropertySelection Component ?
Thnx very much Shing dwi ardi irawan http://dwiardiirawan.blogs.or.id Shing Hing Man wrote: In order to have a particular element selected when the page is rendered, you need to set the value parameter of your PropertySelection model to the desired value. You can try the following. In the PageBeginRenderListener method : if (not rewinding){ // In render mode desiredElement = get it from your IPropertyModel; set value of PropertySelection model to desiredElement; } Shing --- Dwi Ardi Irawan <[EMAIL PROTECTED]> wrote: i got a form that contain PropertySelection i want when i change to edit Mode (DirectLink with parameter) the PropertySelection automatically to be set based on the parameter that i give in HTML Grid(send the parameter) -> From (Edit Mode set the selected of propertySelction) example paramater : "a" propertySelection = {"a", "b", "c"} when i klik the DirectLink the "a" would be the selected of propertySelection could anyone help me ? Home page : http://uk.geocities.com/matmsh/index.html ___ Copy addresses and emails from any email account to Yahoo! Mail - quick, easy and free. http://uk.docs.yahoo.com/trueswitch2.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How To Set Selected Option For PropertySelection Component ?
i got a form that contain PropertySelection i want when i change to edit Mode (DirectLink with parameter) the PropertySelection automatically to be set based on the parameter that i give in HTML Grid(send the parameter) -> From (Edit Mode set the selected of propertySelction) example paramater : "a" propertySelection = {"a", "b", "c"} when i klik the DirectLink the "a" would be the selected of propertySelection could anyone help me ?
Re: AdobeLite for viewing reports
HI, Peter... if don't mind, could you share what you've done to integrate jasperreports n tapestry thnx Peter Dawn wrote: hi all, i have integrated jasper reports within my tapestry web app. for viewing pdf docs i am using the adobe acrobat viewer. now the problem is that adobe is taking up huge amounts of memory on my machine and as a result my tapestry web app becomes un-responsive. as it is java and tomcat take up huge amounts of memory and with adobe my machine is just grinding to a halt and frequently crashing. has somebody integrated a web app with a pdf viewer and do you have the same problems. does anybody know of an alternative pdf viewer (need to use it within my web app though so it should have an ie plugin). i really want to have pdf reports within my tapestry web app. all help appreciated. thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: does anyone try JFreeChart using Tapestry 4 ?
i think i've found one http://www.javaeye.com/pages/viewpage.action?pageId=830 CMIIW http://dwiardiirawan.blogs.or.id Peter Dawn wrote: i have it working with 3.0.3. not sure if it would have any changes with 4 or not. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OOT : how to use Tap IDEA
i have extract the tapidea-0.4.1.zip and put it in the plugins directory of IntelliJ IDEA but it make i can't create new project or open my recent project ? Hugo Palma wrote: You should unzip the full tapidea-0.4.1.zip file into your plugins directory. That should create a directory structure with the tapidea.jar and all required dependencies. Let me know how it goes. Cheers Hugo On 6/9/06, Dwi Ardi Irawan <[EMAIL PROTECTED]> wrote: only tapidea.jar , but inside the tapidea-0.4.1.zip there are many .jar do i have copy them all into plugins folder ??? [EMAIL PROTECTED] wrote: > Copy tapidea jar into the plugins folder of idea, > and restart > > >From Dwi Ardi Irawan <[EMAIL PROTECTED]>: > > >> i've already download the Tap IDEA and Demetra >> but how to install it (without via internet) >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OOT : how to use Tap IDEA
only tapidea.jar , but inside the tapidea-0.4.1.zip there are many .jar do i have copy them all into plugins folder ??? [EMAIL PROTECTED] wrote: Copy tapidea jar into the plugins folder of idea, and restart >From Dwi Ardi Irawan <[EMAIL PROTECTED]>: i've already download the Tap IDEA and Demetra but how to install it (without via internet) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
OOT : how to use Tap IDEA
i've already download the Tap IDEA and Demetra but how to install it (without via internet) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to specify a inside the contrib:table
i really sorry about this i already try and read the tapestrytable.war just a little miss understanding about how i implement it to my code ;-) (my side fault..sorry) but anyway... thnx for answering my question i will try to solve my own problem using the archives NOTE : i would not ask if i'm not stuck, the reason why i'm asking you guys because i need help after try googling and the other thing from the web that can help me (not because i'm too lazy to search from the archive) once again sorry Nick Westgate wrote: Hi Dwi. Both of the questions you have asked recently are coverered very nicely by John Reynolds TapestryTables.war tutorial. Now, in the other thread you said: > i have try TapestryTable.war > but it didn't work Can you please explain that a bit more? What doesn't work? The tutorial should work fine, and will save time for everyone. Also, many questions for Table can be answered by searching the archives for this list. Cheers, Nick. Dwi Ardi Irawan wrote: the problem is : i have to set the different width for each column how can i do this for example could you help me ? Rui Pacheco wrote: Try using css to set the table's properties. On 6/6/06, Dwi Ardi Irawan <[EMAIL PROTECTED]> wrote: does anyone have any idea about this : i'm trying to organize my table...(which is using contrib:table) but i couldn't figure out to specify the inside of the table any suggestion would be appreciated thnx http://dwiardiirawan.blogspot.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to specify a inside the contrib:table
thnx Rui, will try it immedietly http://dwiardiirawan.blogspot.com Rui Pacheco wrote: http://weblogs.java.net/blog/johnreynolds/archive/2004/10/learn_by_teachi_1.html Check this out, it has a lot of usefull examples. I am not sure if it has exactly what you want, but it might get you on the right path. On 6/6/06, Dwi Ardi Irawan <[EMAIL PROTECTED]> wrote: the problem is : i have to set the different width for each column how can i do this for example could you help me ? Rui Pacheco wrote: > Try using css to set the table's properties. > > On 6/6/06, Dwi Ardi Irawan <[EMAIL PROTECTED]> wrote: >> >> does anyone have any idea about this : >> i'm trying to organize my table...(which is using contrib:table) >> but i couldn't figure out to specify the inside of the >> table >> >> any suggestion would be appreciated >> >> thnx >> >> http://dwiardiirawan.blogspot.com >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to specify a inside the contrib:table
the problem is : i have to set the different width for each column how can i do this for example could you help me ? Rui Pacheco wrote: Try using css to set the table's properties. On 6/6/06, Dwi Ardi Irawan <[EMAIL PROTECTED]> wrote: does anyone have any idea about this : i'm trying to organize my table...(which is using contrib:table) but i couldn't figure out to specify the inside of the table any suggestion would be appreciated thnx http://dwiardiirawan.blogspot.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to specify a inside the contrib:table
does anyone have any idea about this : i'm trying to organize my table...(which is using contrib:table) but i couldn't figure out to specify the inside of the table any suggestion would be appreciated thnx http://dwiardiirawan.blogspot.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
rendering one of Table column as a link ? (help me...)
i want to make one of my columns (which is the value get from dtbase as primary key) as a link when i click it i get the value could anyone help me ? i have try TapestryTable.war but it didn't work
Servlet Mapping ??? Help Me
I use in web.xml: MyWeb org.apache.tapestry.ApplicationServlet 1 MyWeb /app Tooth edu.its.imss.gateway.servlet.Toothervlet 2 Tooth / the problem is, in my .html i'm trying to put an image the code is fine but, the image isn't visible the properties of the image in the screen : http://localhost:8080/images/image_kiri_cut_01.gif when i put it in new IE, it redirect to my servlet application (trident) does anyone could help me ??? thnx http://dwiardiirawan.multiply.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Servlet Mapping ???
I use in web.xml: MyWeb org.apache.tapestry.ApplicationServlet 1 MyWeb /app Tooth edu.its.imss.gateway.servlet.Toothervlet 2 Tooth / the problem is, in my .html i'm trying to put an image the code is fine but, the image isn't visible the properties of the image in the screen : http://localhost:8080/images/image_kiri_cut_01.gif when i put it in new IE, it redirect to my servlet application (trident) does anyone could help me ??? thnx http://dwiardiirawan.multiply.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Servlet Mapping ???
I use in *web.xml*: MyWeb org.apache.tapestry.ApplicationServlet 1 MyWeb /app Tooth edu.its.imss.gateway.servlet.Toothervlet 2 Tooth / *the problem is, in my .html i'm trying to put an image the code is fine but, the image isn't visible the properties of the image in the screen : *http://localhost:8080/images/image_kiri_cut_01.gif *when i put it in new IE, it redirect to my servlet application (trident) does anyone could help me ??? *thnx* *http://dwiardiirawan.multiply.com
Re: new logo for Tapestry (just my opinion and my other idea pic, don't mad OK)
hi...thnx for the comment here's my others design http://dwiardiirawan.multiply.com/photos/album/5 just an ideadon't mad... cheers http://dwiardiirawan.multiply.com Dwi Ardi Irawan wrote: it's just my opinion. i think tapestry logo competition just use for the best logo and represent the tapestry meaning cmiiw
Re: new logo for Tapestry (just my opinion and my idea pic, don't mad OK)
it's just my opinion. i think tapestry logo competition just use for the best logo and represent the tapestry meaning cmiiw
Hos to custom CSS in Contrib:Table for just one row
.html == // css will make the whole // tag have "center" //align // but, how to not implemented it in //this tag and // //change it align to "left" (only //this block statement) ? .page === .css .distribution table { text-decoration:none; text-align: left; } .distribution th { text-align: center; background-color: #C0E3FA; } .distribusi td { text-align: center; } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Hos to custom CSS in Contrib:Table for just one row
.html == // css will make the whole tag have "center" align jwcid="[EMAIL PROTECTED]"> // but, how to not implemented it in this tag and // change it align to "left" (only this block statement) ? .page === .css .distribution table { text-decoration:none; text-align: left; } .distribution th { text-align: center; background-color: #C0E3FA; } .distribusi td { text-align: center; }
Re: I do not like the new tapestry logo (constructive criticism)
how about if we make a logo competition for tapestry ? and poll all developers Stephane Decleire wrote: For me Tapestry is the most advanced framework to build websites so why associate to it an oldish picture ? Moreover, i'm not so sure a logo should be so complex as a decorated letter or mythological animal. A logo needs to be printed on papers or webpages with low resolution. BTW, Tapestry is not Hibernate or EJB3 so I don' t think DB cylinders convey the good picture ... I think that the logo should remember what Tapestry is : - a framework at the leading edge of Java technologies (so i would vote for a "modern" logo). - a framework for the UI layer (so the loom which generates something to see is not a bad idea but hard to symbolize). - the only framework for the UI with a component oriented approach (so building blocks seems good ... but already used a thousand of times). - powerfull but usable in RAD (Cognition) IMHO and by experience, i don't think technical staff are good for drawing logos. That's to different form our job ... I wouldn't let a pianist or my baker touch my keyboard ... Is there anybody who knows an "artist" or someone who work in a com agency ? Nick Westgate wrote: Peter is referring to the "decorated T" idea in my other post. E.g. The Book of Kells has a pretty stylish 'T': (Ok, not a tapestry though) http://www.snake.net/people/paul/kells/image/kell2bmp As usual, multiple Nicks cause confusion! ;-) Anyway, the ideas should come forth now, as there is already a "new logo". Peter's idea of decoration with DB cylinders is cool. Cheers, Nick. Nick Faiz wrote: Yeh, that's cool. I didn't mean to jump the gun by offering ideas. Apologies if I've created confusion on the list. I was simply providing ideas because someone said that criticism without alternative suggestions wasn't constructive. Nick Peter Svensson wrote: I like the "decorated T" idea, like the large beginning letter in old (or faux-old) fairy tale books, but with small database cylinders and keyboards instead of leaves and TP-5 instead of vines :) Hmm, wish I knew how to draw that.. Cheers, PS - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Report in Tapestry using Jasperreport
does anyone try jasperreports in tapestry ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
CRUD Example using tapestry ?
is there anyone have the CRUD example using tapestry 4 (contrib table, with check box inside to delete row). please attach to my email. it's really hard to study tapestry i have been learning for 3 month but still get stuck.. thnx
CRUD Example using tapestry ?
is there anyone have the CRUD example using tapestry 4 (contrib table, with check box inside to delete row). please attach to my email. it's really hard to study tapestry i have been learning for 3 month but still get stuck.. thnx