Re: Tapestry contract opportunity
Erol, I run a small consulting firm our primary development focus is on Tapestry and would be very interested in talking with you about your project. We have built a number of Tapestry modules that we use for our projects. As a result, we can usually get an initial version up and running very quickly. We tend to be very careful who we take on as clients because our focus is on projects where our skill set, libraries and experience will make us the most cost effective option. But even if we aren't a good fit, we can often make some recommendations once we are more familiar with your needs. You can reach me at mark.sh...@xeric.net. You can also call me at 620-875-4909 although it might be best to give me a heads up by email or text message as I'm going to be traveling extensively over the next few days and may not always be where I can take a call. Looking forward to talking with you. Mark On Sun, Dec 11, 2011 at 7:18 PM, Erol Akarsu wrote: > I need a contractor who is expert on Tapestry,Hibernate and Spring, other > Java tools to implement a B2B auction site. > Can you please contact with me, ebaka...@yahoo.com ? Please send me your > contact details so that we can discuss more details on the B2B project and > negotiate on the contract price. This is one time project. > > Best Regards > > Erol Akarsu > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Tapestry-contract-opportunity-tp5066936p5066936.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Streaming Example
http://s3.amazonaws.com/xeric_s3_test/index.html This works now using JW Player. When I download the files and try to run them locally it doesn't work for some reason, but it is working on the server and you can see all the configuration by just viewing the source. I don't know why it won't work locally but a couple things I found on the web suggest it is some type of security issue when dealing with local files. Mark - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Free J2ee hosting
Is that to keep sessions synced across multiple load balanced instances? It wouldn't be useful on a free single instance anyway. Mark On Jul 15, 2011 5:30 PM, "Paul Stanton" wrote:
Updating a page with a JSONObject
The documentation says that the event handler for an Ajax call can return (among other things) a JSONObject. This lead me to believe that I could replace: return new MultiZoneUpdate("totalPriceZone", totalPriceZone); With something like: return new JSONObject().put("totalPriceZone", getTotalPrice()); However, it doesn't appear that simply returning the JSON object will trigger the update on the client side. Should this work and if not how can I get a JSONObject to update parts of the page? Thanks! Mark - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Objects session persistance and validation
Once it is submitted you may want to set the user back to null, that way you can start fresh when the page is submitted. The required,email and email,required things sounds odd. I'm going to see if I can reproduce that. What version of tapestry are you using? Mark On Mon, Oct 25, 2010 at 2:17 PM, Anton Mezerny wrote: > Ok, when i changed order from validation="required,email" to > validation="email,required" email validation starts to work properly. Looks > like some magic :). However, I get sometimes user data lost. I can't > reproduce this bug with 100% probability, but it occurs sometimes. I tried > also to change @Persist(PersistenceConstants.FLASH) to default @Persist. > But > it gives me behavior I don't want - it renders user data even if I refresh > the page (I want to show blank form in that case). So FLASH persistance is > what I want, but sometimes data are lost. > > My code now looks like this: > > ---Registration.java- > public class Registration { > >@Property >@Persist(PersistenceConstants.FLASH) >private User user; > >@Property >@Persist(PersistenceConstants.FLASH) > private Customer customer; > >@Property >private String verifyPassword; > >@Inject > private CustomerService customerService; > >@Inject >private UserService userService; > >@Component >private Form registerForm; > >@Inject >private Messages messages; > > @OnEvent(value = EventConstants.SUCCESS, component = "registerForm") >Object validateAndSave() { > >if (errorsDetected()){ >return null; >} >user.setPassword(generateHash(user.getPassword())); >customer.addUser(user); >customerService.save(customer); > >// redirect with a message parameter >return Index.class; > >} > >private boolean errorsDetected(){ >boolean errorDetected = false; > if (!verifyPassword.equals(user.getPassword())) { > registerForm.recordError(verifyPassword, > messages.get("error.verify.password")); > errorDetected = true; > } > >if (userService.getUserByLogin(user.getLogin()) != null) { > > registerForm.recordError(messages.get("error.user.already.exists")); > errorDetected = true; >} > >if > (customerService.getCustomerByBusinessName(customer.getBusinessName()) != > null) { > > registerForm.recordError(messages.get("error.customer.already.exists")); >errorDetected = true; >} >return errorDetected; > } > } > > > -Registration.tml > t:sidebarTitle="Current Time" > t:pageTitle="Register" > xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd"; > xmlns:p="tapestry:parameter"> > > > > > > >Customer registration (company or private > person) > > > > > value="customer.businessName" validate="required"/> > > > > value="customer.contactPhone" validate="required"/> > > > > value="customer.contactPerson" validate="required"/> > > > > value="customer.businessAddress" validate="required"/> > > > > value="customer.email" validate="email,required"/> > > > > > >Personal registration > add="verifyPassword"> > > > > > validate="required"/> > > > > > > validate="required"/> > > > > > > validate="required"/> > > > > > > value="user.contactPhone" validate="required"/> > > > > > > validate="required"/> > > > > > > validate="required"/> > > > > > > validate="required"/> > > > > > > validate="required"/> > > > > > > validate="required"/> > > > > > > validate="required"/> > > > > > value="verifyPassword" validate="required"/> >
Re: tynamo-security (shiro) exception
What version of tapestry-security are you using in your pom.xml? On Mon, Oct 25, 2010 at 7:27 AM, Anton Mezerny wrote: > Hi all, > I am playing with hotel booking application and trying to use some examples > from it in my project. Now I have a problem in login page - when I try to > login, I got > shiro's cipher exception, like here: > https://issues.apache.org/jira/browse/SHIRO-183 > Is it fixed now? How can I upgrade to fixed version of > shiro/tynamo-security? > Thanks in advance. > Anton >
Re: [T5.2] Beginner questions about modules, services injection and packages
When you make a droppable jar you usually only have one Module class specified in the jar file. If you need more, you annotate the specified module to point it to other submodules. So you should probably be able to do the same thing for your AppModule to point it to other submodules as well. Admittedly I haven't tried this. The web.xml file has a filter listed for "app". Tapestry adds Module to the end of this to decide what module to load. So it loads AppModule. You can change that in web.xml if you like and you may be able to add additional filters pointing to other modules there as well. I'm not sure why you'd want to create a separate module as you described. The main reason I see for creating different modules is when you need to bring the app up in a different state. For example, when you run the app you might want to have IDataSource bound to LiveDataSource, but when you run the Selenium tests you want it bound to TestDataSource. You can accomplish this by creating a TestModule and then telling the test web.xml to load the "test" filter instead of the "app". I don't think it is "wrong" to use separate modules and I doubt you'll see any performance difference. I'm just not sure how much you will gain by separating your bindings out into different modules. If you really need that level of separation, I'd do it as a separate project and add it in by referencing the jar. That would give you complete separation. If one particular concern (Business logic, data access) is generic enough that you might be able to reuse it elsewhere, you might consider putting it into its own project where it can be tested and developed separately. Otherwise, you can probably achieve the same benefits simply by organizing your bind statements in groups. So you have one group with all of your DAO bindings another with all of your business logic services, etc. Thats my perspective, but it doesn't mean it is the "right" way to do it for your project. Mark On Sun, Oct 24, 2010 at 7:15 AM, Muhammad Mohsen wrote: > Thank you Mark, > > That explained lots of things :). I want to make a separate module class > just for the sake of code organization. May be It's wrong to create a > module > class for every service category(data access, business logic..etc). What do > you think ? Is it ok performance and architecture wise ? > > I don't know how to specify a module in the web.xml, don't reckon I read > anything about this ! > > About the auto loading, I thought it was meant only for the droppable jar > feature. I think the @Submodule annotation will do the trick. > > Thanks a lot for your time :) > > On Sun, Oct 24, 2010 at 5:19 AM, Mark wrote: > > > On Sat, Oct 23, 2010 at 6:29 PM, Muhammad Mohsen > >wrote: > > > > > > > > 2.Modules > > > I simply created a class, suffixed it "Module" so it ended up being > named > > > "DataAccessModule". > > > I added a > > > public static void bind(ServiceBinder binder) { > > > binder.bind(UserDAO.class, UserDAOImpl.class); > > > } > > > method just like my AppModule which works perfectly find. When I used > the > > > "DataAccessModule" to bind classes. As I @Inject them. They couldn't be > > > resolved and I get a "Class not found exception". This module is under > > the > > > services package right beside "AppModule.java" > > > So why aren't my services resolved ? > > > > > > I think you want to put: > > binder.bind(UserDAO.class, UserDAOImpl.class); > > in your AppModule file instead of creating a new DataAccessModule for it. > > You can bind a bunch of different things just by adding them to the list. > > If > > you take a look at your web.xml file you'll see there is a filter set to > > "app" and that is going to load the AppModule. > > > > If you are wanting it to be separate in order to create a drop in > > autoloading module, you need to check out the documents on creating > > autoloading modules. > > http://people.apache.org/~uli/tapestry-site/ioc-autoload.html > > > > If you want to have a separate module for DataAccess, you might be able > to > > add it to the web.xml or possibly use the @SubModule annotation (see the > > section about IOC Autoloading). > > > > If you have an interface and its implementation that you want to load > with > > the binder.bind command, I think you'd usually put them in the services > > package, but don't think it matters because you are going to explicitly > > tell > > Tapestry where to find them when you call bind in your AppModule file. > > > > Mark > > > > > > -- > *Regards,* > *Muhammad Gelbana > Java Software Programmer* >