Re: BufferedImage in Tapestry

2012-09-27 Thread Giulio Micali
for such kind of jobs, i use the following method: Returning the entire tag, so I can include it even in ajax responses. I hope it can be helpful, Giulio

Re: tapestry-push - proof of concept

2012-05-10 Thread Giulio Micali
I don't know if it's what you are looking for, but some time ago I found this article: http://spreadthesource.com/2010/11/bringing-realtime-to-your-java-applications-with-websockets-nodejs-redis-tapestry-5/ Hope can be useful. Cheers, Giulio

Re: Best place to put application/page parameters?

2012-04-24 Thread Giulio Micali
the best solution I found in order to point on external folders (generally on J2ee, not Tapestry specific) without a fixed or a common base path is a "deployment plan" in Weblogic. Basically, you put in web.xml one(or more) env-entry with a fixed key and your path(or url, or every config value) as

Re: Lightweight TapestryTools update site

2012-04-13 Thread Giulio Micali
Oh, i forgot: the autocomplete feature didn't works for me because I didn't delete the old workspace. With a new workspace it works. Thanks for the great job, Giulio

Re: Lightweight TapestryTools update site

2012-04-13 Thread Giulio Micali
Hi Gavin, I gave a look at the code compared to my old patch, looks like 2 lines of code are missing (the dirty ones in my patch): ### Eclipse Workspace Patch 1.0 #P org.apache.tapestrytools.ui Index: src/org/eclipse/wst/xml/ui/internal/actions/FindCorrespondingFileAction.java

Re: Lightweight TapestryTools update site

2012-04-13 Thread Giulio Micali
> 在 2012年4月13日 下午10:45,Gavin Lei 写道: > > Hi > > > > 2012/4/13 Giulio Micali : > >> Hi Gavin, > >> I just tried the feature, and it shows the Issue 13 (it finds the tml in > >> target, using maven). > > > > I will test it in Maven envir

Re: Lightweight TapestryTools update site

2012-04-13 Thread Giulio Micali
Hi Gavin, I just tried the feature, and it shows the Issue 13 (it finds the tml in target, using maven). For the tml editor, I have 2 problems: 1) it doesn't perform the autocomplete of tapestry components (or parameters) 2) the "source" tab is not the default view, and everytime I should switch m

Re: Tapestry Hibernate session reattach

2012-03-22 Thread Giulio Micali
if i guess correctly, you are trying to do a reverse onetomany. After a lot of mistakes, i reached this solution for that: @Entity @Table (name="M_INVOICE") public class Invoice { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Column(name="ID_INVOICE", nullable=false) pr

Re: Tapestry Hibernate session reattach

2012-03-22 Thread Giulio Micali
Hi George, What follows depends on my guess that you use some form of declarative transaction mechanism, like annotations on methods. Generally your transaction(and your session) are closed at the end of the root method(annotated) call or at the end the request, if you use the spring OpenSessionI

Re: Draft version of Light weight TapestryTools GSoC 2012 project prposal

2012-03-21 Thread Giulio Micali
Hi Gavin, So just a "return" or loop break simple statement can fix this > problem, right? > Yes, it's a common thing I've noticed in many projects. the "unclean part" of the patch is how you compute the sources directory, but I don't know the eclipse framework and i cannot help in that. > Tha

Re: Draft version of Light weight TapestryTools GSoC 2012 project prposal

2012-03-21 Thread Giulio Micali
t-version-of-Tomcat--td32346776.html > > Cheer up - I hope you have nice day :) > > Chris > > > On 21/03/2012, at 7:33 PM, Gavin Lei wrote: > > > Hi Giulio, > > > > I just found that you attached a patch in Issue 13 now, Google Code > > did not send an

Re: Draft version of Light weight TapestryTools GSoC 2012 project prposal

2012-03-21 Thread Giulio Micali
ll speed up components creation. Cheers, Giulio 2012/3/21 Gavin Lei > Hi Giulio, > > I just found that you attached a patch in Issue 13 now, Google Code > did not send any notification to me about the Issue changes, there may > be some setting wrong, sorry for that. > > 2012/3

Re: Draft version of Light weight TapestryTools GSoC 2012 project prposal

2012-03-21 Thread Giulio Micali
Gavin Many users already told you they does not use your plugin because the most important feature, the CTRL+R switch, DOESN'T WORK I've already told you that: your project looks like abandoned, you even don't answer to issues...why someone would use it ? I use your plugin because I've p

Re: Select Component chaining: 2nd select box value is always null

2012-03-05 Thread Giulio Micali
Are your selects in a loop ? 2012/3/5 Beat Durrer > Hey there > > For my project I need two chained select boxes. > I followed the example shown in the API > ( > http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/corelib/components/Select.html > ), > but used my own SelectModel fo

Re: Need feedback for Eclipse WTP based Tapestry 5 visual editor

2012-02-15 Thread Giulio Micali
2012/2/15 Gavin Lei > Hi Giulio, > > I am finding solution to support Tapestry custom components besides > standard components in XML editor, and i believe we can do it. > > But for the css and html things, no, we will not add html/css schemas > support in XML editor, it is complex and unnecessar

Re: Need feedback for Eclipse WTP based Tapestry 5 visual editor

2012-02-15 Thread Giulio Micali
Well, the eclipse classic is faster for sure, but i think we are all used to the eclipse JEE slowness :) I know nothing about eclipse development but...if you use the XML editor as base, in a common page I think you will have the schema only for standard tapestry components...am I right ? Example

Re: Get Server Name in AppModule

2012-02-15 Thread Giulio Micali
2012/2/15 Dmitry Gusev > > BTW, why do you need this? > > A common use-case is the adoption of the "sticky" load balancing feature, when your code use a non-clustered resource on 2-N balanced servers. in these kind of situations, you usually need to know on which server you are running an asynchr

Re: Get Server Name in AppModule

2012-02-14 Thread Giulio Micali
Like Kalle said. For example, if you use WebLogic, inside the launch script you will find: java -DserverName=Server_1 Almost all appServers starts through a script (on unix systems), you should add it to each instance(in a cluster, i mean) if it is missing. Cheers, Giulio

Re: detect textfield text change

2012-02-12 Thread Giulio Micali
In tapestry jumpstart site there was an example of the zoneupdater mixin, i think that it's already present in the 5.3 version. Cheers, Giulio

Re: Component abstraction

2012-02-12 Thread Giulio Micali
You can do something like this: public class Crud { ... // all your code @Inject private ComponentResources resources; @Inject private Block yourBeanEditorBlock; /** * A Block from the page to render instead of the normal BeanEditor. */ @Parameter(defaultPr

Request about AbstractField

2012-02-10 Thread Giulio Micali
Hi, I'm writing components, that includes fields, that uses my ajax mixins, and I'm facing a lot of problems due to the following issues(I'm still using tap 5.1.0.5/5.2.6, but I'm planning an upgrade): 1) all the standard fields does not expose a public or protected methods to get/set the "value"

Re: Need feedback for Eclipse WTP based Tapestry 5 visual editor

2012-02-07 Thread Giulio Micali
Like many people here, my advice is the lightweight one. >From my user experience, the "graphical editor" can be really cool to see (not only in tapestry, also in JSF and before in JSP or swing/awt ecc...), but is useful only at the beginning of the project and damaging since then until end of time

Re: Need feedback for Eclipse WTP based Tapestry 5 visual editor

2012-02-04 Thread Giulio Micali
Hi Gavin ! I'm currently using your plugin: only the CTRL+R feature indeed, but it's REALLY useful. but... I've posted a solution for the issue (13) in that feature and after several months...nothing, not even a post like "I will check that". I thought that the project has ended, and I'm happy t

Re: adding an Open EntityManager In View filter to my T5 app

2012-01-23 Thread Giulio Micali
I use the hibernate version, but it should be the same. Here my config(works with tapestry 5.1.0.5 and 5.2.6, i never tried the newest version): Hibernate Session In View Filter org.springframework.orm.hibernate3.support.OpenSessionInViewFilter

Re: What is your tapestry project setup like (build tool/ide)

2012-01-16 Thread Giulio Micali
Hi, basically I use maven with the jetty plugin in the pom(for command line execution) and Eclipse + M2Eclipse plugin, with some addons that works almost all the time, but causes some troubles (maybe I'm the one that don't know how to configure them...) : 1) RunJettyRun: after some workarounds (ex

Re: Which IDE for Tapestry?? [short and medium term]

2011-11-15 Thread Giulio Micali
Well, maven+eclipse + RunJettyRun works fine even with multi-projects, if you manually create the manifest in src/main/resources. Hope that can be useful. Giulio 2011/11/15 Julien Martin > Hello, > I have tried to use IntelliJ for my beginnings with tapestry and I am > somewhat frustrated with

Re: Tapestry and CDI ( the need for )

2011-10-06 Thread Giulio Micali
you said that you know which service you should use at compilation time ? you can create 1 module for the interface and 3 separate modules (aka component library) one for each implementation (and contribution) and include one of them in your build conditionally(for example, with maven or ant or gr

Re: Custom component

2011-10-06 Thread Giulio Micali
yes, the second is better If your component is a "container" for a group of fields. In that case, you should do it in the afterRender phase, so your method is called after all single fields has already the new submitted values and you can "validate" (and rollback if you want) the whole result. 20