Comment by Kunal on SpringMvc RequestBody getting headers
I managed to solve the error thanks! It was a fault from the request sender. They were having some problems and the header was included in the body... Thanks!
View ArticleComment by Kunal on WPF ModernUI and Extended Grid Conflict
@Prajwal These lines in the config: <ResourceDictionary Source="/FirstFloor.ModernUI;component/Assets/ModernUI.xaml" /> <ResourceDictionary...
View ArticleComment by Kunal on Get parameter passed in navigation
@gaborhodi Hello, i have the exact same problem and i created a class called IContent like so: github.com/firstfloorsoftware/mui/wiki/Handle-navigation-eve‌​nts. i also added the implementations and...
View ArticleComment by Kunal on How can I consume a rest webservice with oauth 1.0a using...
Hi @WannaBeGeek I did not, sorry. Although what i needed was to communicate between a wordpress (php) based website with an java web (spring) site. So i used a plugin in wordpress called JSON API and...
View ArticleComment by Kunal on How can I draw a hexagon and fit all children to its...
I have edited my question and tried to be more specific and with code. Thanks for your insight, I need to implement a shape instead of rectangular that's why I posted it here @Paulie_D
View ArticleComment by Kunal on How can I draw a hexagon and fit all children to its...
wow this is perfect @stojkosd! Thank you very much! I also implemented a solution but I didn't manage to make the right spacing between the shapes yet. I am going to use your code and wrap it in a for...
View ArticleComment by Kunal on Reading dynamic XML nodes in SQL Server
I have the exact same problem but i need to select also the "OtherName"... how can i do this? Thanks @Shnugo
View ArticleComment by Kunal on Entity Framework "Multiple object sets per type are not...
@Crowcoder I did a lot actually i tried all first 5 pages of google...
View ArticleSpring MVC read property file null in DAOImpl
I need to read a property value in my UserDetailsDaoImpl. I'm using Spring Security.It succesfully reads inside of a @Controller but not in this class maybe because it's a @Repository.What can i do to...
View ArticleAnswer by Kunal for Spring MVC read property file null in DAOImpl
My Problem was that since i called a method it wouldn't load the @Value so i had to inject some beans.Like this:<bean...
View ArticleHibernate query "or condition" won't work
I am trying the following hibernate query but it always gives me a wrong result: @SuppressWarnings("unchecked") @Override public List<Jcelulasmin> getAllOthers(int id, String username) { Session...
View ArticleCan't Override Equals method on Java when calling contains
I have the following funtion that checks if a List of codigos contains a single codigos object:if (!concorrente.getJcodigoses().contains(cod)) { return "redirect:"+ referrer; }I read that i need to...
View Article"GET" value in JSP with Spring MVC
I am trying to get the "registo" value from the folowing url: http://localhost:83/spring/login?registo=sucessoin my jsp file.What I have tried so far:<c:if test="${not empty...
View ArticleSpring MVC Validate form and return data if has errors
I can successfully validate my form and even return the errors. My problems started when my view had a few selects that needed to be populated with the data coming from the controller.When i do...
View ArticleAnswer by Kunal for Get Hibernate Initialized object in JSP
Thanks everyone for your time and patience the solution was simple.The problem was that i was getting 2 different errors and one of them was that i wasn't initializing JpatrocinadoresPassatempos...
View ArticleAnswer by Kunal for Could not open Hibernate Session for transaction on First...
The answer is on my edit that was to add the following in my beans that have the connection data:<!-- Configuration pool --><property name="validationQuery" value="SELECT 1" /><property...
View ArticleHibernate- Sql query cast object
I have Spring MVC Application alongside hibernate. I can cast hql queries to object but the same doesn't apply to SQL. I have the following query to cast to Jpassatempos Object:List<Jpassatempos>...
View ArticleHibernate Select SubQuery
I have the following hql query:JgrelhasListBack = session.createQuery("from Jgrelhas where jtabuleiros.id=? and id<? order by id desc").setParameter(0, tabuleiroId).setParameter(1,...
View ArticleJava Web Application connect to MYSQL and SQL SERVER
I have a SpringMvc Web App running perfectly on a tomcat server alongside MySql.What i need to do is that i need to store some data to another database on a SQL Server in another hosting.So i am...
View ArticleHow to add WebServices Server to SpringMVC?
I have a Spring MVC WebApp and it is working perfectly, now i want it to have a soap WebService server.I tried adding a new class of type Web Service (runtime apache axis2).this is the content:public...
View ArticleParse mysql datetime to c# DateTime [duplicate]
I have a MySql DateTime 1442915520000 and i need to parse it using C#.I have tried the following:DateTime dt = Convert.ToDateTime(dataFim);DateTime dt = DateTime.Parse(i[0]["dataFim"].ToString());Any...
View ArticleWordpress get_the_content_feed with paginated posts
I have a wordpress site and i have been working on it's feed.I noticed that when a post has been paginated with , it only renders the first page of the post.What i need to do is get all the content of...
View ArticleSecure uploaded files on build SpringMVC
I have a SpringMVC WebApp and it has file upload system. The problem is that whenever i rebuild the project all of the files in myproject/src/main/webapp/resources/uploads disappear.Any idea on what i...
View ArticleGet Hibernate Initialized object in JSP
I have a list of objects (Jpassatempos) and i'm tring to initialize them Session session = this.sessionFactory.getCurrentSession(); List<Jpassatempos> list = (List<Jpassatempos>)...
View ArticleSpring MVC Access Service class from a Cron Method annotated with @Scheduled
I have a working cron method but it gives me a null java.lang.NullPointerException on my service class:public class CronTask { private JpassatemposService jpassatemposService; @Autowired(required=true)...
View ArticleLinq - group and get list of objects
I have a list of L_CabecDocumento and each one of them has a L_CabecJob.I want to get all unique L_CabecJob from each and every L_CabecDocumento (i have a Where condition).The problem is that i can't...
View ArticleIntegrate Spring Socials (Facebook) with Spring MVC XML Based
I have a working spring mvc webapp and it is xml based so i have to use the same procedures and not "pure java configs".I'm trying to integrate facebook sign in to my app and i have tried to follow...
View ArticleSpringMvc RequestBody getting headers
I am using SpringMVC and this is my POST method:RequestMapping(value = "/test/handler", method = RequestMethod.POST, headers = {"Content-type=application/json"}) public String getOpen(@RequestBody...
View ArticleSpring MVC Login Programmatically: No qualifying bean of type...
I have a Spring Application with spring security and it all works great. When I try to login the user upon registration I can't get it to work...I have searched a lot and discovered that my principal...
View ArticleCould not open Hibernate Session for transaction on First Login
I have a full operating Spring MVC Application running with Spring Security but I get the following error whenever the server hasn't been active in a while and someone tries to login:HTTP Status 500 -...
View ArticleAnswer by Kunal for Kendo Grid MVC - Server Export Excel datetime field...
I solved it by adding:NumberFormat = "yyyy/MM/dd h:mm"format = new SpreadCellFormat { ForeColor = isHeader ? SpreadThemableColor.FromRgb(216, 184, 168) : SpreadThemableColor.FromRgb(0, 0, 0),...
View ArticleKendo Grid MVC - Server Export Excel datetime field (custom format)
The datetime field is being exported as an number, but if i change the cell to datetime type in excel than it gets the correct values.All of the server export is functional except the date format.Since...
View ArticleHow to deploy workflow to openkm?
I have installed jbpm 6.3 and have a "hello world" workflow project to deploy to my openkm.I can't find a "deployment tab" anywhere neither could i find an option to export .par file.Can anyone help...
View ArticleAmbiguous because multiple kinds of members with this name exist in interface
this is the Interface:Namespace IBasBS100 Public Interface IBasBSMoedas <DispId(0)> <Obsolete("This method is obsolete. Use Actualiza(BasBE100.BasBEMoeda objMoeda, ref string strAvisos)...
View Article